410470: GYM104024 B ZYW with his score
Memory Limit:256 MB
Time Limit:1 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Description
B. ZYW with his scoretime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output
As we all know, ZYW is a master of roll. Now, at the end of this term, everyone wants to know how many points ZYW has scored. But ZYW believes that only people who are intelligent enough can know his score. So he told you his encrypted score.
There are only two courses in this semester. Let's assume that ZYW's scores are $$$a$$$ and $$$b$$$, respectively. He will tell you $$$a+b$$$ and $$$a\ \And \ b$$$. Can you tell the value of $$$a\oplus b$$$?
"$$$\And$$$" and "$$$\oplus$$$" represents bitwise AND and XOR operation, respectively.
InputThe input consists of two integers $$$a+b$$$ and $$$a\ \And\ b\ (0\le a,b \le 10^9)$$$.
OutputOutput an integer representing $$$a\oplus b$$$.
ExampleInput5 2Output
1