I'm king of a house! And, what's more, beyond that,
I'm king of a blueberry bush and a cat!
I'm Yertle the Turtle! Oh, marvelous me!
For I am the ruler of all that I see!
Yertle has decided that the number of objects he can see — and therefore rule — depends on the height of his throne. As Minister of Computing and Vertigo, your task is to determine which objects Yertle would be able to see if he built his throne to a particular height.
Standard input consists of:
All distances are in flipper lengths and all latitudes and longitudes are in degrees. A floating-point value is written as a string of decimal digits with an optional decimal point and an optional sign. The fields on each line are separated by exactly one space character. You may assume that no object hides another; only the horizon limits Yertle's view.
Standard output consists of the names of the objects whose tops are visible to Yertle, listed in alphabetical order, one name per line.