""" """ import sys from sys import stdin A,B = map(int,input().split()) print (A|B-A&B)