Even Divison

4.3

3 votes
Easy
Problem

Aleksa wants to divide a number N into two integers x and y such that sum of x and y equals N. Also x and y both must be positive even integers. Tell whether aleksa can divide N into two parts such that they meet the requirements.

Input:

First line contain an integer T denoting the number of test cases.
Each test case contain the integer N

Output:

Print "YES" if possible else print "NO" (without quotes) for each test case in new line.

Constraints:

1 ≤ T ≤ 1000
1 ≤ N ≤ \(10^{9}\)

Sample Input
2
4
3
Sample Output
YES
NO
Time Limit: 1
Memory Limit: 256
Source Limit:
Explanation

Aleska can divide 4 into x=2 and y=2 . both are even numbers also x+y=4

Editor Image

?