题目描述
Problem Statement
How many positive integers no greater than N can be represented as $a^2 \times b \times c^2$ with three primes a,b, and c such that a<b<c?
Input
The input is given from Standard Input in the following format:
N
Output
Print the answer as an integer.
Constraints
- N is an integer satisfying $300 \le N \le 10^{12}$.
Sample Input 1
1000
Sample Output 1
3
The conforming integers no greater than 1000 are the following three.
- $300 = 2^2 \times 3 \times 5^2$
- $588 = 2^2 \times 3 \times 7^2$
- $980 = 2^2 \times 5 \times 7^2$
Sample Input 2
1000000000000
Sample Output 2
2817785
输入格式
见题面 Input 部分
输出格式
见题面 Output 部分
样例输入
1000
样例输出
3