XOR sum#9098

XOR sum

1 second
128 megabytes
Medium

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

Input

Two integers and r~(0 \le l \le r \le 10^{18}).

Output

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

Examples

Example 1

Loading
Loading