x,y = map(int,input().split()) ans = (x or y) - (x and y) print(ans)