There are multiple test cases. The first line of the input contains an integer(
) indicating the number of test cases. For each test case:
The first and only line contains an integer(
).
For each test case output one line containing one integer, indicating the number of types of cards satisfying.
We useto indicate a type of card whose
and
.
For the first sample test case the valid types of cards areand
.
For the second sample test case the valid types of cards areand
.
For the third sample test case the valid types of cards are,
and
.