n=int(eval(input()))

v=list(map(int,input().split()))

c=list(map(int,input().split()))

ans=0

for i in range(n):

            if  v[i]-c[i] >0:

                        ans += v[i]-c[i]

print(ans)                        

n=int(eval(input()))

v=list(map(int,input().split()))

c=list(map(int,input().split()))

a=0

for i in range(n):

            if v[i]-c[i]>0:

                        a+=v[i]-c[i]

print(a)





n = int(eval(input()))
v = list(map(int, input().split()))
c = list(map(int, input().split()))
ans = 0
for i in range(n):
    if v[i] - c[i] > 0:
        ans += v[i] - c[i]
print(ans)

n = int(eval(input()))
v = list(map(int, input().split()))
c = list(map(int, input().split()))
a = 0
for i in range(n):
    if v[i] - c[i] > 0:
        a += v[i] - c[i]
print(a)

-ans = 0 +a = 0 -        ans += v[i] - c[i] -print(ans) +        a += v[i] - c[i] +print(a)