Chessboard

Time limit: 100 milliseconds
Memory limit: 64 megabytes

A king wishes to go for a walk of a square chessboard with the following conditions:

Your task is to find the maximal possible length of a king's path (here we mean the length of the polyline, not the number of king's moves).

Input

The first line of the input contains the number of the test cases, which is at most 20. The descriptions of the test cases follow. Each test case description consists of an integer N (1 ≤ N ≤ 300), denoting the size of the chessboard. The test cases are separated by blank lines.

Output

For each test case in the input, output a line containing the length of the king's tour with at least three digits after the decimal point. Print a blank line between test cases. The cells have side 1.

Examples

InputOutput
3

1

2

3
0.000

4.000

9.414