Statement
Statement language
Sinoka wants to render a model made of regular polygons by dividing each polygon into nonoverlapping triangles. Find the number of triangles needed for each polygon.
Input
The input is given in the following format:
Each case is given in the following format:
is the number of vertices of the -th regular polygon.
Output
For each case, print the number of triangles for each polygon in input order, one per line.
Constraints
- .
- .
- .
- The sum of over all cases is at most .
Subtasks
Samples
Input
2
3
3 4 5
1
1000000000
Output
1
2
3
999999998