Semiperfect number#2395

Semiperfect number

1 secondo
64 megabyte
Media

A perfect number is a number equal to the sum of its divisors other than itself. Semiperfect numbers are natural numbers that are exactly one greater or one less than the sum of their divisors (for example, and ).

Find the sum of all semiperfect numbers in the interval from to .

Input

Two natural numbers and (1 \le a, b \le 2\,000\,000\,000).

Output

Output the answer to the problem.

Esempi

Esempio 1

Loading
Loading