1968: 【入门】数字之和为13的整数

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:3 Solved:3

Description

求出1~n范围内的整数,使其数字之和为13,请问这样的数有多少个? 例如:数85,其数字之和为8+5=13 数373,其数字之和为3+7+3=13。

Input

一个整数n(n<=10000000)

Output

输出一个整数,代表符合条件数的总个数

Sample Input Copy

1000

Sample Output Copy

75