Eolymp-value#12235

Eolymp-value

2 seconds
256 megabytes
Hard

Alice defines the Eolymp-value of some integers and to be f(n,k) as:

f(n,k) = \sum_{i=1}^{n} (i \bmod k)

where "" denotes the remainder after division.

Alice wonders: for how many positive integers does f(n,k) become divisible by ? Formally, count the number of integers k \ ( 1 \le k \le 10^{18} ) such that:

f(n,k) \equiv 0 \pmod{k}.

Input

The first line contains a single integer (1 \le t \le 1000) — the number of test cases.

Each of the next lines contains a single integer (1 \le n \le 10^9).

Output

For each test case, print a single integer — the number of values of satisfying the condition.

Examples

Example 1

Loading
Loading

Note

In the third test case, all possible values of are: {1, 3, 7, 21}

Scoring

  1. Subtask ( points): (1 \le \sum n \le 10).

  2. Subtask ( points): (1 \le \sum n \le 100).

  3. Subtask ( points): (1 \le \sum n \le 1000).

  4. Subtask ( points): (1 \le \sum n \le 10^6).

  5. Subtask ( points): No additional constraints.