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