a, b = map(int, input().split()) assert 1 <= a <= 1000 assert 1 <= b <= 1000 x = a + b y = (a ^ b) + 2 * (a & b) assert x == y print(x)