Category

Similar Problems

0776. Excellent number

Time limit : 1000 ms
Memory limit : 64 mb

The number is called excellent if it has exactly five natural divisors. Given number n, your task is to find the amount of excellent numbers in interval [1..n].

Input

In the input given one integer n(1≤n≤1018).

Output      

Output the amount of excellent numbers from 1 to n.

Samples                                  

Input

Output

1

1

0

2

1000

3

3

1000000

11

 

Tayyorladi: Azat Yusupov