A = int(input()) B = int(input()) if A > B: print(A - B) elif A < B: print(B - A) else: print(0)