import sys

import numpy as np



N = eval(input())



V = input().split()

v = np.array([ int(x) for x in V])



C = input().split()

c = np.array([ int(x) for x in C])



delt = v - c

print((delt[delt>0].sum()))
N = int(eval(input()))

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

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



ans = 0

for v, c in zip(V, C):

    p = v - c

    if p > 0:

        ans += p



print(ans)

import sys
import numpy as np

N = eval(input())
V = input().split()
v = np.array([int(x) for x in V])
C = input().split()
c = np.array([int(x) for x in C])
delt = v - c
print((delt[delt > 0].sum()))

N = int(eval(input()))
V = list(map(int, input().split()))
C = list(map(int, input().split()))
ans = 0
for v, c in zip(V, C):
    p = v - c
    if p > 0:
        ans += p
print(ans)

-import sys -import numpy as np - -N = eval(input()) -V = input().split() -v = np.array([int(x) for x in V]) -C = input().split() -c = np.array([int(x) for x in C]) -delt = v - c -print((delt[delt > 0].sum())) +N = int(eval(input())) +V = list(map(int, input().split())) +C = list(map(int, input().split())) +ans = 0 +for v, c in zip(V, C): +    p = v - c +    if p > 0: +        ans += p +print(ans)