Here's the pseudocode for the solution: plaintext read w if w > 2 AND w % 2 == 0 then print "YES" else print "NO" In C++, use the modulo operator % to check if a number is even.
If the remainder is 0, the number is even. The condition w > 2 handles the edge case where w = 2. Even though 2 is even, it can only split into 1+1, and 1 is odd.