3798 - 特殊的质数

求[A,B]之间的质数个数,并且满足X=Q^2+P^2,P,Q是正整数。

Input

第一行输入A,B

Output

输出有多少组P,Q满足条件

Examples

Input

6 66

Output

7

Hint

1<=A<=B<=3*10^8

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