100 #ABC106B. [ABC106B] 105

[ABC106B] 105

Score: 200200 points

Problem Statement

The number 105105 is quite special - it is odd but still it has eight divisors. Now, your task is this: how many odd numbers with exactly eight positive divisors are there between 11 and NN (inclusive)?

Constraints

  • NN is an integer between 11 and 200200 (inclusive).

Input

Input is given from Standard Input in the following format:

NN

Output

Print the count.

105
1

Among the numbers between 11 and 105105, the only number that is odd and has exactly eight divisors is 105105.

7
0

11 has one divisor. 33, 55 and 77 are all prime and have two divisors. Thus, there is no number that satisfies the condition.