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

#493. Numbers with digit sum 11

You get n. How many numbers from 1 to n have a digit sum equal to 11? ### Input One integer n (1 ≤ n ≤ 10⁵). ### Output A number.

Examples

Input
5040
Output
272
Input
66705
Output
1275

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