CodeLab Academy 📞 9936 6696
← List Python · Level 5: While loops Code · 50 points ← #416 #418 →

#417. Perfect number

You get n. Print `Yes` if the sum of its divisors other than n equals n, otherwise `No` (example: 6 = 1+2+3). ### Input One integer n (2 ≤ n ≤ 10⁵). ### Output `Yes` or `No`.

Examples

Input
8128
Output
Yes
Input
6
Output
Yes

💡 You can solve it with Python, JavaScript or blocks. Read the input line by line with input(). Don't print a question (like input("Number: ")). Print exactly what the output asks for, nothing more.

🔒 You can solve the first 3 problems without an account. Sign up for free to solve this one!