100 #ABC213A. [ABC213A] Bitwise Exclusive Or

[ABC213A] Bitwise Exclusive Or

Score : 100100 points

Problem Statement

You are given integers AA and BB between 00 and 255255 (inclusive). Find a non-negative integer CC such that A xor C=BA \text{ xor }C=B.

It can be proved that there uniquely exists such CC, and it will be between 00 and 255255 (inclusive).

What is bitwise $\mathrm{XOR}$?

The bitwise XOR\mathrm{XOR} of integers AA and BB, A XOR BA\ \mathrm{XOR}\ B, is defined as follows:

  • When A XOR BA\ \mathrm{XOR}\ B is written in base two, the digit in the 2k2^k's place (k0k \geq 0) is 11 if exactly one of AA and BB is 11, and 00 otherwise.

For example, we have 3 XOR 5=63\ \mathrm{XOR}\ 5 = 6 (in base two: 011 XOR 101=110011\ \mathrm{XOR}\ 101 = 110).

Constraints

  • 0A,B2550\leq A,B \leq 255
  • All values in input are integers.

Input

Input is given from Standard Input in the following format:

AA BB

Output

Print the answer.

3 6
5

When written in binary, 33 will be 1111, and 55 will be 101101. Thus, their xor\text{xor} will be 110110 in binary, or 66 in decimal.

In short, 3 xor 5=63 \text{ xor } 5 = 6, so the answer is 55.

10 12
6

Figure