A laboratory at a certain company is testing a new material called politoksyparen. During the research an interesting property was discovered: a straight rod made of this material, when heated, lengthens and bends so that it turns into a circular arc whose chord is the rod's original straight shape (this property holds only for rods of very small diameter).
Suppose there are n rods of very small diameter, where the i-th rod has initial length li (1≤li≤100000). When heated, each rod lengthens by di (1≤di≤100, with di≤li/2). Lengths are measured in millimeters.
Write a program that:
The first line contains one positive integer n (n≤50000). Each of the next n lines contains two integers separated by a single space: the original length of the rod li and its increase in length while heated di.
Print n lines, each containing one nonnegative integer. The integer on the i-th line must equal the distance between the position of the midpoint of the i-th rod before and after heating, computed to the required accuracy.