题目描述
Problem Statement
How many integers x between 1 and N, inclusive, can be expressed as x = a^b using some positive integer a and a positive integer b not less than 2?
Input
The input is given from Standard Input in the following format:
N
Output
Print the answer as an integer.
Constraints
- All input values are integers.
- $1 \le N \le 10^{18}$
Sample Input 1
99
Sample Output 1
12
The integers that satisfy the conditions in the problem statement are 1, 4, 8, 9, 16, 25, 27, 32, 36, 49, 64, 81: there are 12.
Sample Input 2
1000000000000000000
Sample Output 2
1001003332
输入格式
见题面 Input 部分
输出格式
见题面 Output 部分
样例输入
99
样例输出
12