How migratory birds solve the longitude problem