N, *XY = map(int, open(0).read().split()) a, b = XY[0] print(b - a)