def min_difference(A: int, B: int) -> int: return abs(A - B) A, B = map(int, input().split()) print(min_difference(A, B))