n,m = map(int,input().split()) if n==m: print(n) else: print(m-n)