Reward Split
Practice this coding question on Coding Gurukul.
Problem statement
Two students win W reward points in a Coding Gurukul challenge. They want to divide all the points between themselves so that each student receives a positive, even integer number of points. Their shares may be different. Determine whether such a division is possible.
Input format
The input contains a single integer W — the total reward points.
Output format
Print YES if the points can be divided as required; otherwise, print NO.
Constraints
1 <= W <= 100
Sample input
12
Sample output
YES
Sign in to run or submit a solution in C++, Java or Python.