Limits 1s, 512 MB

This year, Bob will participate in the "Take-Off Programming Contest Spring 2023", a prestigious programming contest at his university. He wants to be in the top 1010 in this contest, so he started solving different kinds of problems. At this moment, he came across an interesting problem. There are four circles with equal radius, rr touching each other by their edges. What will be the area of the black-shaded region in the picture below?

Since Bob is still a newbie at problem-solving, he needs your help to solve this interesting problem. Can you figure out the area of the black-shaded region?

Input

The first line will be a single integer TT — indicating the number of test cases.

The following TT lines will contain an integer rr — indicating the radius of each circle.

1T1031 \le T \le 10^3

1r1051 \le r \le 10^5

π=3.1416 \pi = 3.1416

Output

You have to output TT lines in the format “Case X: Y” (without quotes), where XX represents the number of test cases starting from 11 to TT, and YY is the area of the black-shaded region rounded to four decimal places.

Check out the samples for clarification.

Sample

InputOutput
2
4
13
Case 1: 13.7344
Case 2: 145.0696

Use ‘‘Double’’ to avoid precision errors.

Be careful about the new line (‘\n’) at the end.

Submit

Login to submit.

Statistics

68% Solution Ratio
leviathan_09Earliest, 11M ago
user.4445Fastest, 0.0s
Mysha.4850Lightest, 5.4 MB
Mysha.4850Shortest, 182B
Toph uses cookies. By continuing you agree to our Cookie Policy.