#abc213a. [abc213_a]Bitwise Exclusive Or
[abc213_a]Bitwise Exclusive Or
Problem Statement
You are given integers and between and (inclusive). Find a non-negative integer such that .
It can be proved that there uniquely exists such , and it will be between and (inclusive).
What is bitwise ?
The bitwise of integers and , , is defined as follows:
- When is written in base two, the digit in the 's place () is if exactly one of and is , and otherwise.
For example, we have (in base two: ).
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the answer.
Sample Input 1
3 6
Sample Output 1
5
When written in binary, will be , and will be . Thus, their will be in binary, or in decimal.
In short, , so the answer is .
Sample Input 2
10 12
Sample Output 2
6