{"problem":{"name":"755","description":{"content":"You are given an integer $N$. Among the integers between $1$ and $N$ (inclusive), how many _Shichi-Go-San numbers_ (literally \"Seven-Five-Three numbers\") are there? Here, a Shichi-Go-San number is a p","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"abc114_c"},"statements":[{"statement_type":"Markdown","content":"You are given an integer $N$. Among the integers between $1$ and $N$ (inclusive), how many _Shichi-Go-San numbers_ (literally \"Seven-Five-Three numbers\") are there?\nHere, a Shichi-Go-San number is a positive integer that satisfies the following condition:\n\n*   When the number is written in base ten, each of the digits `7`, `5` and `3` appears at least once, and the other digits never appear.\n\n## Constraints\n\n*   $1 \\leq N < 10^9$\n*   $N$ is an integer.\n\n## Input\n\nInput is given from Standard Input in the following format:\n\n$N$\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"abc114_c","tags":[],"sample_group":[["575","4\n\nThere are four Shichi-Go-San numbers not greater than $575$: $357, 375, 537$ and $573$."],["3600","13\n\nThere are $13$ Shichi-Go-San numbers not greater than $3600$: the above four numbers, $735, 753, 3357, 3375, 3537, 3557, 3573, 3575$ and $3577$."],["999999999","26484"]],"created_at":"2026-03-03 11:01:14"}}