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