Lazy Professor 

Professor Yzal does not like to grade the exams of his students, so that he assigns this task to his assistants. Final students' grades are defined as weighted sums of the grades obtained in the exams. But Professor Yzal does not define a priori the exam's relative weights. Instead of that, only when the assistants end their job (and all the students' grades in each exam are known) Professor Yzal decides the exam's weights. He does it trying to be pleasant with the whole class, so that the assigned weights should maximize the average final grade that the class obtains, and expecting that eventual complaints about his grading criteria will be as few as possible. And finally, maybe rewarding harder exams, Yzal defines that the weight of every particular exam should lie within a specific range of values.


This term is about to finish and you were hired to help Yzal with his lazy grading job. Your task is to write a program that, given the students' grades and the reasonable range of weights for each exam, determines the maximum possible average according to the following rules:

Input 

There are several cases to consider. Each test case is described as follows:

You can suppose that

$\displaystyle \sum_{{i=1}}^{{N}}$mini $\displaystyle \leq$ 100,    and    $\displaystyle \sum_{{i=1}}^{{N}}$maxi $\displaystyle \geq$ 100.

The last test case is followed by a line containing two zeros.

Output 

For each given case, output a single line with a number indicating the maximum possible average of the students' final grades if the weights are defined according to the rules. The answer should be formatted and approximated to two decimal places. The floating point delimiter must be `.' (i.e., the dot). The rounding applies towards the nearest neighbor unless both neighbors are equidistant, in which case the result is rounded up (e.g., 78.312 is rounded to 78.31; 78.566 is rounded to 78.57; 78.345 is rounded to 78.35, etc.).

Sample Input 

1 1
0
0 100
2 2
50 90
70 50
0 100
0 100
2 2
50 90
70 50
30 70
30 70
2 2
50 90
70 50
50 50
50 50
2 2
73 52
92 81
20 50
60 80
0 0

Sample Output 

0.00
70.00
67.00
65.00
72.90