# URL : https://yukicoder.me/problems/no/1511 a, b = map(int, input().split()) print((a | b) - (a & b))