x,y = map(int,input().split()) ans = x|y + x&y print(ans)