How can a bird remain stationary in the air while flying into the wind?

If the headwind is 20 miles per hour and the bird also flies at 20 mph relative to the wind then the bird will be stationary relative to the earth. However, the bird is not stationary relative to the wind.