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

#416. Armstrong number

You get n. Raise each digit of n to the power of the number of digits and add them up. Print `Yes` if you get n itself, otherwise `No` (example: 153 = 1³+5³+3³). ### Input One integer n (1 ≤ n ≤ 10⁶). ### Output `Yes` or `No`.

Examples

Input
407
Output
Yes
Input
371
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!