#CCBCMCHIN0000009. Dưa hấu (Watermelon)
Dưa hấu (Watermelon)
Watermelon
Source: Codeforces
Version: Phuoc Hung OJ Extended
Problem Statement
A watermelon weighs kilograms. It must be split into exactly two parts of positive integer weights such that both parts have even weights. The parts do not need to be equal. Determine whether such a split is possible.
Input
A single line contains an integer with .
Output
Print YES if the required split is possible; otherwise print NO.
Subtasks
- Subtask 1 (20 points): .
- Subtask 2 (30 points): .
- Subtask 3 (50 points): .
Examples
Example 1
Input
8
Output
YES
Explanation
For w = 8, a valid split exists exactly when w is even and greater than 2. Evaluating these two conditions gives YES.
Example 2
Input
2
Output
NO
Explanation
For w = 2, a valid split exists exactly when w is even and greater than 2. Evaluating these two conditions gives NO.