X,t=list(map(int,input().split()))



if (X-t)<0:

	print("0")

else:

	print((X-t))



X,t=list(map(int,input().split()))



print((max(X-t,0)))
X, t = list(map(int, input().split()))
if (X - t) < 0:
    print("0")
else:
    print((X - t))

X, t = list(map(int, input().split()))
print((max(X - t, 0)))

-if (X - t) < 0: -    print("0") -else: -    print((X - t)) +print((max(X - t, 0)))