Limits 1s, 512 MB

Two circles are placed inside a rectangle. They do not intersect with each other but they are touching each other. They both have the same radius. Each side of the rectangle are also touched by the circles.

Now you are given the radius of the circles. You have to find the area of the green region.

For this problem assume that ππ (pi) is 3.1416.

Input

The input starts with an integer TT (T<11T < 11), denoting the number of test cases.

Each test case contains a floating point number rr (0<r10000 < r ≤ 1000), denoting the radius of the circles. You can assume that rr has at most four digits after the decimal point.

Output

For each test case print the case number as "Case X:" and the area of the green region with two digits after the decimal point.

Sample

InputOutput
3
30
40.082
85.8
Case 1: 1545.12
Case 2: 2758.15
Case 3: 12638.46

Submit

Login to submit.

Statistics

94% Solution Ratio
emrul_muEarliest, Jul '17
Tarik.amtolyFastest, 0.0s
Tahmid_98Lightest, 0 B
Nusab19Shortest, 75B
Toph uses cookies. By continuing you agree to our Cookie Policy.