#BS0000059. N + NOD(N)

N + NOD(N)

N + NOD(N)

Source: UVa

Version: Phuoc Hung OJ Extended

Problem Statement

Consider the integer sequence N0,N1,N2,…N_0,N_1,N_2,\ldots defined by

N0=1,N_0=1,

and, for i>0i>0,

Ni=Ni−1+NOD⁡(Ni−1),N_i=N_{i-1}+\operatorname{NOD}(N_{i-1}),

where NOD⁡(x)\operatorname{NOD}(x) is the number of positive divisors of xx.

Given integers A,BA,B, count the sequence values in the inclusive range [A,B][A,B].

Input

The only line contains integers A,BA,B.

Output

Print the number of sequence values satisfying A≤Ni≤BA\le N_i\le B.

Subtasks

  • Subtask 1 — 20%: 1≤A≤B≤1041\le A\le B\le10^4.
  • Subtask 2 — 30%: 1≤A≤B≤2⋅1051\le A\le B\le2\cdot10^5.
  • Subtask 3 — 50%: 1≤A≤B≤1061\le A\le B\le10^6.

Example

Input

1 18

Output

7

Explanation

The sequence values in [1,18][1,18] are 1,2,4,7,9,12,181,2,4,7,9,12,18, so the answer is 77.