N persons have taken part in a race which consists of x Km Hurdle Race & y Km swimming.
Each racer has his own swimming & running speed.
Organizers have been bribed by the Nth person to set x and y so that he can win by the maximum margin.
You are to determine if this is possible and, if so, give x and y.
Input contains many test cases (<=10000)
First line of each case the gives total race distance (in km)
Next line gives number of competitors n.
Next N lines gives running & swimming speed for that person in (km/hr).
If it is possible to fix the race , print x and y accurate to two decimal places,
and the amount of seconds by which the Nth person will win the race.
If it is not possible to fix the race print -1
25.00 75.00 4286
N,x,y < 10^4
use ternary search
Problem Setter: Jayant Mukherji