LearnPy Hub
← Loops problems
Hard

Perfect Number

A perfect number equals the sum of its divisors other than itself (6 = 1 + 2 + 3). Read n and print Yes or No.

Input

One integer n ≥ 2.

Output

Yes or No.

Sample 1

Input
6
Output
Yes

Sample 2

Input
28
Output
Yes
solution.py
Output appears here
Perfect Number · Python practice problem · LearnPy Hub