import numpy as np

n = int(eval(input()))

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

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

ans = 0

for i,j in zip(v,c):

  if i-j>=0:

    ans+=(i-j)

print(ans)
n = int(eval(input()))

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

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

ans = 0

for i,j in zip(v,c):

  if i-j>=0:

    ans+=(i-j)

print(ans)
import numpy as np

n = int(eval(input()))
v = np.array(list(map(int, input().split())))
c = np.array(list(map(int, input().split())))
ans = 0
for i, j in zip(v, c):
    if i - j >= 0:
        ans += i - j
print(ans)

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

-import numpy as np - -v = np.array(list(map(int, input().split()))) -c = np.array(list(map(int, input().split()))) +v = list(map(int, input().split())) +c = list(map(int, input().split()))