On take-off and landing, headwinds are good because they allow you to use a shorter runway. In flight, headwinds are bad because they slow you down and require that you use more fuel to get to your destination. Conversely, tailwinds are bad on take-off and landing, but are good in flight.