n, m = map(int, input().split()) print(abs(n - m))