Limits 500ms, 512 MB

Meena and Raju are learning about different shapes. Meena's favourite shape is Circle while Raju likes Square. They start drawing their favourite shape wherever they can! But after a while they have started to feel bored. In the meantime Mithu came up with a idea of a interesting game!

The rules of the game are as follow:

  1. Meena has to draw a circle with radius RR
  2. Raju has to draw the the inner square of Meena's last drawn circle
  3. Meena has to draw the inner circle of Raju's last drawn square
  4. Continue from step 2

After playing the game for a few minutes they found out that the game will never end! But they wonder what will be the sum of the radius of the cirlces if they continue the game forever!

As Meena and Raju never get old, they are not so good in computation. But they know that you are participating the 'Battle of Brains' this year. So they've come to you. Can you help them?

Input

On the first line there will be a single integer, TT denoting the number of test cases (1T1001 \le T \le 100). Then TT lines will follow. Each of the line will contain a single integer RR (1R100001 \le R \le 10000).

Output

For each of the test case print a single line containing a single number denoting the result with exactly 1 decimal place.

Sample

InputOutput
2
5
12
17.1
41.0

For floating point operation it is better to use double.

Submit

Login to submit.

Statistics

88% Solution Ratio
Pheonix98Earliest, Aug '17
Abcd.eFastest, 0.0s
arnob_daLightest, 0 B
Abdullah_1234Shortest, 64B
Toph uses cookies. By continuing you agree to our Cookie Policy.