eolymp
Competitions

XOR Contest

XOR sum

Find the XOR of all the numbers on a segment [l, r].

Input

Two integers l and r (0lr1018).

Output

Print the XOR of all the numbers on a segment [l, r].

Time limit 1 second
Memory limit 128 MiB
Input example #1
3 8
Output example #1
11