Alice defines the Eolymp-value of some integers and to be f(n,k) as:
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:
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).
For each test case, print a single integer — the number of values of satisfying the condition.
Example 1
In the third test case, all possible values of are: {1, 3, 7, 21}
Subtask ( points): (1 \le \sum n \le 10).
Subtask ( points): (1 \le \sum n \le 100).
Subtask ( points): (1 \le \sum n \le 1000).
Subtask ( points): (1 \le \sum n \le 10^6).
Subtask ( points): No additional constraints.