num = int(raw_input()) a, b = int(raw_input()) print b - a