C. Contest Struggles
time limit per test
1 second
memory limit per test
1024 megabytes
input
standard input
output
standard output
Examples
Input
2 1
70 50
Output
90.0000000
Input
10 3
80 90
Output
75.7142857
Input
2 1
100 10
Output
impossible