100 atcoder#ABC213A. [ABC213A] Bitwise Exclusive Or
[ABC213A] Bitwise Exclusive Or
Score : points
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 $\mathrm{XOR}$?
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.
3 6
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 .
10 12
6