#ABC300D. [ABC300D] AABCC

[ABC300D] AABCC

Score : 400400 points

Problem Statement

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

Constraints

  • NN is an integer satisfying 300N1012300 \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.

1000
3

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

  • 300=22×3×52300 = 2^2 \times 3 \times 5^2
  • 588=22×3×72588 = 2^2 \times 3 \times 7^2
  • 980=22×5×72980 = 2^2 \times 5 \times 7^2
1000000000000
2817785