#abc121d. [abc121_d]XOR World

[abc121_d]XOR World

Problem Statement

Let f(A,B)f(A, B) be the exclusive OR of A,A+1,...,BA, A+1, ..., B. Find f(A,B)f(A, B).

What is exclusive OR?

The bitwise exclusive OR of integers c1,c2,...,cnc_1, c_2, ..., c_n (let us call it yy) is defined as follows:

  • When yy is written in base two, the digit in the 2k2^k's place (kgeq0k \\geq 0) is 11 if, the number of integers among c1,c2,...cmc_1, c_2, ...c_m whose binary representations have 11 in the 2k2^k's place, is odd, and 00 if that count is even.

For example, the exclusive OR of 33 and 55 is 66. (When written in base two: the exclusive OR of 011 and 101 is 110.)

Constraints

  • All values in input are integers.
  • 0leqAleqBleq10120 \\leq A \\leq B \\leq 10^{12}

Input

Input is given from Standard Input in the following format:

AA BB

Output

Compute f(A,B)f(A, B) and print it.


Sample Input 1

2 4

Sample Output 1

5

2,3,42, 3, 4 are 010, 011, 100 in base two, respectively. The exclusive OR of these is 101, which is 55 in base ten.


Sample Input 2

123 456

Sample Output 2

435

Sample Input 3

123456789012 123456789012

Sample Output 3

123456789012