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