#P1475B. New Year's Number
New Year's Number
No submission language available for this problem.
Description
Polycarp remembered the -th year, and he is happy with the arrival of the new -th year. To remember such a wonderful moment, Polycarp wants to represent the number as the sum of a certain number of and a certain number of .
For example, if:
- , then the number can be represented as the sum ;
- , then the number can be represented as the sum ;
- , then the number can be represented as the sum ;
- , then the number cannot be represented as the sum of the numbers and .
Help Polycarp to find out whether the number can be represented as the sum of a certain number of numbers and a certain number of numbers .
The first line contains one integer () — the number of test cases. Then test cases follow.
Each test case contains one integer () — the number that Polycarp wants to represent as the sum of the numbers and .
For each test case, output on a separate line:
- "YES" if the number is representable as the sum of a certain number of and a certain number of ;
- "NO" otherwise.
You can output "YES" and "NO" in any case (for example, the strings yEs, yes, Yes and YES will be recognized as positive).
Input
The first line contains one integer () — the number of test cases. Then test cases follow.
Each test case contains one integer () — the number that Polycarp wants to represent as the sum of the numbers and .
Output
For each test case, output on a separate line:
- "YES" if the number is representable as the sum of a certain number of and a certain number of ;
- "NO" otherwise.
You can output "YES" and "NO" in any case (for example, the strings yEs, yes, Yes and YES will be recognized as positive).