Sigma Function

Count integers from 1 to m whose divisor sum is even, where m reaches 10^12.

Medium7Number theoryMathNo attempts yetTime limit1sMemory limit256 MB

Problem

The sigma function σ(n)\sigma(n) is the sum of all divisors of an integer nn.

For example, σ(2)=1+2=3\sigma(2) = 1 + 2 = 3, σ(6)=1+2+3+6=12\sigma(6) = 1 + 2 + 3 + 6 = 12, and σ(12)=1+2+3+4+6+12=28\sigma(12) = 1 + 2 + 3 + 4 + 6 + 12 = 28.

Given mm, write a program that counts how many nn with 1nm1 \le n \le m have an even σ(n)\sigma(n).

Input

The first line contains mm (1m10121 \le m \le 10^{12}).

Output

Print the number of nn with 1nm1 \le n \le m whose σ(n)\sigma(n) is even.