x, y = map(int, input().split()) print(1+abs(x-y))