n,*t=list(map(int,open(0).read().split()));print((sum((x-y)*(x>y)for x,y in zip(t[:n],t[n:]))))
_,v,c=[list(map(int,t.split()))for t in open(0)];print((sum((x-y)*(x>y)for x,y in zip(v,c))))
n, *t = list(map(int, open(0).read().split()))
print((sum((x - y) * (x > y) for x, y in zip(t[:n], t[n:]))))

_, v, c = [list(map(int, t.split())) for t in open(0)]
print((sum((x - y) * (x > y) for x, y in zip(v, c))))

-n, *t = list(map(int, open(0).read().split())) -print((sum((x - y) * (x > y) for x, y in zip(t[:n], t[n:])))) +_, v, c = [list(map(int, t.split())) for t in open(0)] +print((sum((x - y) * (x > y) for x, y in zip(v, c))))