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

#429. While: sum of the digits

You get a positive integer n. Use a `while` loop to find its **sum of the digits**. ### Input One integer n (1 ≤ n ≤ 10⁹). ### Output The answer.

Examples

Input
421048658
Output
38
Input
71
Output
8

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