#466. Numbers with digit sum 8
You get n. How many numbers from 1 to n have a digit sum equal to 8?
### Input
One integer n (1 ≤ n ≤ 10⁵).
### Output
A number.
Examples
Input
74434
Output
494
Input
62003
Output
490
💡 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.