#abc300d. [abc300_d]AABCC

[abc300_d]AABCC

Problem Statement

How many positive integers no greater than NN can be represented as a2timesbtimesc2a^2 \\times b \\times c^2 with three primes a,ba,b, and cc such that a<b<ca<b<c?

Constraints

  • NN is an integer satisfying 300leNle1012300 \\le N \\le 10^{12}.

Input

The input is given from Standard Input in the following format:

NN

Output

Print the answer as an integer.


Sample Input 1

1000

Sample Output 1

3

The conforming integers no greater than 10001000 are the following three.

  • 300=22times3times52300 = 2^2 \\times 3 \\times 5^2
  • 588=22times3times72588 = 2^2 \\times 3 \\times 7^2
  • 980=22times5times72980 = 2^2 \\times 5 \\times 7^2

Sample Input 2

1000000000000

Sample Output 2

2817785