x= int(input()) y=int(input()) if x==y: print(x+y) if x!=y: print(x-y)