CodeLab Academy 📞 9936 6696
← List Python · Level 9: Functions and dicts Code · 90 points ← #865 #867 →

#866. Sum of digits to the power 3

You get n. Raise each digit to the power 3 and find the sum. ### Input One integer n (0 ≤ n ≤ 10¹⁸). ### Output A number.

Examples

Input
810312854838911096
Output
3977
Input
430980452715772962
Output
3645

💡 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!