100 atcoder#ABC186C. [ABC186C] Unlucky 7
[ABC186C] Unlucky 7
Score : points
Problem Statement
Takahashi hates the number .
We are interested in integers without the digit in both decimal and octal. How many such integers are there between and (inclusive)?
Constraints
- is an integer.
Input
Input is given from Standard Input in the following format:
Output
Print an integer representing the answer.
20
17
Among the integers between and , and contain the digit in decimal. Additionally, and contain the digit in octal.
Thus, the integers other than , , and meet the requirement.
100000
30555