#abc250d. [abc250_d]250-like Number

[abc250_d]250-like Number

Problem Statement

Let us regard an integer kk as "similar to 250250" if the following condition is satisfied:

  • kk is represented as k=ptimesq3k=p \\times q^3 with primes p<qp<q.

How many integers less than or equal to NN are "similar to 250250"?

Constraints

  • NN is an integer between 11 and 101810^{18} (inclusive)

Input

Input is given from Standard Input in the following format:

NN

Output

Print the answer as an integer.


Sample Input 1

250

Sample Output 1

2
  • 54=2times3354 = 2 \\times 3^3 is "similar to 250250".
  • 250=2times53250 = 2 \\times 5^3 is "similar to 250250".

The two integers above are all the integers "similar to 250250".


Sample Input 2

1

Sample Output 2

0

Sample Input 3

123456789012345

Sample Output 3

226863