IntermediateRating 1400
Square-Free Numbers
A number is square-free if no square bigger than 1 divides it. Count the square-free numbers from 1 to n.
Input
One integer n (1 ≤ n ≤ 10⁶).
Output
One integer.
Sample 1
Input
10
Output
7
Sample 2
Input
1
Output
1
Output appears here