2818 - Gcd

给定整数N,求1<=x,y<=N且Gcd(x,y)为素数的 数对(x,y)有多少对.

Input

一个整数N

Output

如题

Examples

Input

4

Output

4

Hint

hint

对于样例(2,2),(2,4),(3,3),(4,2)

1<=N<=10^7

Time Limit 1 second
Memory Limit 128 MB
Discuss Stats
上一题 下一题