You are given an integer
.
Consider an integer sequence .
Define another sequence of length , such that for each .
is said to be interesting if for every .
Find the maximum length of an interesting sequence. If there are no interesting sequences, print .
Input Format
- The first line of input contains an integer , denoting the number of test cases. The description of test cases follows.
- Each test case consists of a single line of input, which contains a single integer .
Output Format
- For each test case, print a new line containing one integer — the maximum length of an interesting sequence for a given value of .
Constraints
Sample Input 1
2
8
4
Sample Output 1
3
2
Explanation
Test Case : Consider the sequence . . The sum of the corresponding elements of and are , and . Thus is an interesting sequence of size .
Test Case : Consider the sequence . . The sum of the corresponding elements of and are and . Thus is an interesting sequence of size .
It's guaranteed that, in both examples above, there doesn't exist a longer sequence satisfying the problem constraints.
ConversionConversion EmoticonEmoticon