A perfect number is a positive integer that equals the sum of its positive divisors excluding itself (its proper divisors). For example 6 = 1 + 2 + 3.
Decide whether n is perfect.
Input format
One line: a positive integer n.
Output format
Print YES if n is perfect, otherwise NO.
Constraints
- 1 <= n <= 100000000