3166: 比赛-条件数字计数

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

Description

统计 100~N 中,个位≠3、十位≠5、百位≠7 的数的个数。

Input

统计 100~N 中,个位≠3、十位≠5、百位≠7 的数的个数。

Output

符合条件数量

Sample Input Copy

110

Sample Output Copy

11