A bird traveled 4 miles north before stopping to rest. The bird then flew 2,640 yards south in search of food. Finally, it flew 5 more miles north. How many yards was it from its starting point?