#Lutece1394. Bigger place

Bigger place

Migrated from Lutece 1394 Bigger place

All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.

Description

In a boring afternoon, Tom and Marie are two boring people playing a boring game.

The rules of the game is easy.

At first Tom will drew a boring circle and the boring circle's area is xx.

In each round, Mary will be in the circle and draw a point randomly.And Tom will preserve the maximal circular portion without the point.If the area of the circle is less than yy,the game will end.

So what's the expectation of the numbers of round played?

Input

First line of input consists of a single integer containing the number of test cases TT ( equal to around 500000500000)

each of the following TT lines contain two integer xx,yy.(0<yx3y<10000000000<y\le x\le 3y<1000000000)

Output

ans the absolute error should be less than 10610^{-6}.

Samples

2
2 1
1 1
2.591439944260
1.000000000000

Resources

IEEEXTREME Programming Competition