import numpy as np 



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)
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 = 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)

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 -