CF2044A.Easy Problem

传统题 时间 2000 ms 内存 256 MiB 3 尝试 1 已通过 1 标签

Easy Problem

Cube is given an integer nn. She wants to know how many ordered pairs of positive integers (a,b)(a,b) there are such that a=nba=n-b. Since Cube is not very good at math, please help her!

Input

The first line contains an integer tt (1t991 \leq t \leq 99) — the number of test cases.

The only line of each test case contains an integer nn (2n1002 \leq n \leq 100).

Output

For each test case, output the number of ordered pairs (a,b)(a, b) on a new line.

Note

In the first test case, the only ordered pair that works is (a,b)=(1,1)(a,b)=(1,1).

In the second test case, the three ordered pairs of (a,b)(a,b) that work are (3,1),(2,2),(1,3)(3,1), (2,2), (1,3).

Samples

3
2
4
6
1
3
5

在线编程 IDE

建议全屏模式获得最佳体验