601151 - 素数个数

编程求2~n(n为大于2的正整数)中有多少个素数。

Input

输入n(2≤n≤50000)。

Output

素数个数。

Examples

Input

10

Output

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