4059 - Count the people Extreme!!!!!   

Description

Consider a square area with edge length N. The lower left corner is (0, 0) and the upper right corner is (NN). There is one person stand on each point (xy). (0 ≤ xyN) x and y are integers. Suppose you are the one at (0, 0), please calculate the number of people you can see directly. For example, the edge length of the sqaure is 2. You can see (0, 1), (1, 0), (1, 2), (2, 1) and (1, 1) directly.


Input

There are multiple test cases. The first line contains an integer T (T ≤ 100) which represents the number of test case. The next T lines, each line contains an interger N (0 < N ≤ 1000000), which represents the length of the square.

Output

Please output the number of people for each test case.

Sample Input  Download

Sample Output  Download

Tags




Discuss