Given a number, can you break it in two even parts?
INPUT FORMAT
T : Number of test cases, each test case contains one line as follows:
N : Given integer
OUTPUT FORMAT
Print YES if you can break it, otherwise print NO.
CONSTRAINTS
0 ≤ T ≤ 103
0 ≤ N ≤ 107
2
5
20
Number of test cases = 2
1st test case: N = 5, We can break it into 2 parts of (1 and 4) OR (2 and 3).
In all of the above breaking arrangements, parts are all not even. So, we print NO.
2nd test case: N = 20, We can break it into 2 parts of (10 and 10). Both parts are even. So, we print YES.
Please login to use the editor
You need to be logged in to access the code editor
Loading...
Please wait while we load the editor
No editorial available for this problem.
Please login to use the editor
You need to be logged in to access the code editor
Loading...
Please wait while we load the editor