Perfect Number


Submit solution

Points: 100
Time limit: 1.0s
Memory limit: 256M

Author:
Problem types

A perfect number equals the sum of its positive divisors smaller than itself. Determine whether \(N\) is perfect.

Input

One line containing \(N\).

The input satisfies:

  • \(1 \le N \le 9 * 10^18\)

Output

Print YES if \(N\) is perfect; otherwise, print NO.

Example

Input
6
Output
YES

Comments

There are no comments at the moment.