A, B = map(int, input().split()) print(max(1, abs(A - B)))