The title has nothing to do with the problem. The title is named after a football player that problem setter likes, Cristiano Ronaldo.
Given a positive integer , determine whether can be expressed as the sum of two or more consecutive positive integers. That is, determine whether there exists an integer pair satisfying:
Input
A positive integer is given on the first line.
Output
Print YES if an integer pair satisfying the given conditions exists, and NO otherwise.
Constraints
- .
Subtasks
Samples
Sample 1
Input
1
Output
NO
Sample 2
Input
8
Output
NO
Sample 3
Input
9
Output
YES