Once Alice, Bob and Vasya got 2 numbers A and B. But it was a long time ago. At present, Alice remembers only the value a|b, while Bob remembers the value a⨁b and Vasya remembers the value a&b.
You need to help them determine the values of A and B. If there are multiple answers print any one of them. If there are no valid A,B then print −1.
Note
Input Format
Output Format
Constraints
There are 2 samples.
Sample 1: Since, 14|11=15, 14⨁11=5 and 14&11=10, A=14 and B=11 is a valid pair.
Sample 2: There does not exist any valid A,B, hence answer is −1