There is a random sequence whose element are all random numbers either or with the same possibility.Now we define MAVS,the abbreviate of Maximum Absolute Value Subsequence,to be any (if more than one) subsequences of whose absolute value is maximum among all subsequences.Given the length of ,your task is to find the expectation of the absolute value of MAVS.
输入格式
There is only one input file.The first line is the number of test cases . positive integers follow,each of which contains one positive number not greater than denoted the length of .
For each test case,output the expectation you are required to calculate.Answers are rounded to numbers after the decimal point.(as shown in the sample output)
样例
样例输入 #1
3
1
5
10
样例输出 #1
Case 1: 1.000000
Case 2: 2.750000
Case 3: 4.167969