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