#D12654. Factor Prime

    ID: 10526 Type: Default 2000ms 536MiB

Factor Prime

Factor Prime

A positive integer is called a "prime-factor prime" when the number of its prime factors is prime. For example, 1212 is a prime-factor prime because the number of prime factors of 12=2×2×312 = 2 \times 2 \times 3 is 33, which is prime. On the other hand, 210210 is not a prime-factor prime because the number of prime factors of 210=2×3×5×7210 = 2 \times 3 \times 5 \times 7 is 44, which is a composite number.

In this problem, you are given an integer interval [l,r][l, r]. Your task is to write a program which counts the number of prime-factor prime numbers in the interval, i.e. the number of prime-factor prime numbers between ll and rr, inclusive.

Input

The input consists of a single test case formatted as follows.

ll rr

A line contains two integers ll and rr (1lr1091 \leq l \leq r \leq 10^9), which presents an integer interval [l,r][l, r]. You can assume that 0rl<1,000,0000 \leq r-l < 1,000,000.

Output

Print the number of prime-factor prime numbers in [l,r][l,r].

Examples

Input

1 9

Output

4

Input

10 20

Output

6

Input

575 57577

Output

36172

Input

180 180

Output

1

Input

9900001 10000000

Output

60997

Input

999000001 1000000000

Output

592955

inputFormat

Input

The input consists of a single test case formatted as follows.

ll rr

A line contains two integers ll and rr (1lr1091 \leq l \leq r \leq 10^9), which presents an integer interval [l,r][l, r]. You can assume that 0rl<1,000,0000 \leq r-l < 1,000,000.

outputFormat

Output

Print the number of prime-factor prime numbers in [l,r][l,r].

Examples

Input

1 9

Output

4

Input

10 20

Output

6

Input

575 57577

Output

36172

Input

180 180

Output

1

Input

9900001 10000000

Output

60997

Input

999000001 1000000000

Output

592955

样例

180 180
1