{"raw_statement":[{"iden":"problem statement","content":"Takahashi hates the number $7$.\nWe are interested in integers without the digit $7$ in both decimal and octal. How many such integers are there between $1$ and $N$ (inclusive)?"},{"iden":"constraints","content":"*   $1 \\leq N \\leq 10^5$\n*   $N$ is an integer."},{"iden":"input","content":"Input is given from Standard Input in the following format:\n\n$N$"},{"iden":"sample input 1","content":"20"},{"iden":"sample output 1","content":"17\n\nAmong the integers between $1$ and $20$, $7$ and $17$ contain the digit $7$ in decimal. Additionally, $7$ and $15$ contain the digit $7$ in octal.\nThus, the $17$ integers other than $7$, $15$, and $17$ meet the requirement."},{"iden":"sample input 2","content":"100000"},{"iden":"sample output 2","content":"30555"}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}