#d2732. 简单的异或问题
简单的异或问题
Simple XOR Problem
Problem Description
Consider the set of integers . Choose numbers from it so that their XOR sum equals . Output the largest possible .
Input Format
Two numbers and , where and .
Output Format
Output the largest possible .
Sample Input
2 2
Sample Output
3
Sample Explanation
For the sample, we can choose , whose XOR sum is .