#abc250d. [abc250_d]250-like Number
[abc250_d]250-like Number
Problem Statement
Let us regard an integer as "similar to " if the following condition is satisfied:
- is represented as with primes .
How many integers less than or equal to are "similar to "?
Constraints
- is an integer between and (inclusive)
Input
Input is given from Standard Input in the following format:
Output
Print the answer as an integer.
Sample Input 1
250
Sample Output 1
2
- is "similar to ".
- is "similar to ".
The two integers above are all the integers "similar to ".
Sample Input 2
1
Sample Output 2
0
Sample Input 3
123456789012345
Sample Output 3
226863