A,B = map(int, input().split()) print(A+B-min(A,B)*2)