시간 제한
메모리 제한
시간 제한
3초
메모리 제한
128 MB
Diver had just completed her mission in the depths of the ocean and needs to resurface. To get to the surface she must use the rope that goes straight down from her boat on the surface to her location d feet under the water. However, while she was working, several sharks gathered near the rope. They do not consider her a danger or a prey yet, but if she gets closer than r feet to a shark, then it immediately attacks her.
To avoid decompression sickness diver can descend (go down) or ascend (go up) at most vd feet per second. She also cannot go deeper than d feet under the water.

Your task is to figure out if the diver can get to the surface without being attacked by a shark, and if yes, then how fast she can do it.
The first line of the input file contains 6 integer numbers:
Then follow n lines describing sharks with 3 integer numbers per line for each shark:
Initially the diver is more than r feet from any shark.
Write to the output file IMPOSSIBLE if the diver cannot get to the surface or write the minimal time that it will take the diver to resurface with precision of at least 10−5.