Problem A
Paintball II
You are playing paintball on a
Assume that the southwest corner of the field is at
Input
The input consists of a line containing
You must enter the field somewhere between the southwest and northwest corner and must leave somewhere between the southeast and northeast corners.
Output
If you can complete the trip, output four real numbers with two digits after the decimal place, the coordinates at which you may enter and leave the field, separated by spaces. If you can enter and leave at several places, give the most northerly. If there is no such pair of positions, print a line containing “IMPOSSIBLE”.
Sample Input 1 | Sample Output 1 |
---|---|
3 500 500 499 0 0 999 1000 1000 200 |
0.00 1000.00 1000.00 800.00 |