import numpy as np

N=int(eval(input()))

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

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

s=[v-c for v,c in zip(vs,cs) if v-c>0]

print((sum(s)))
N=int(eval(input()))

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

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

s=[v-c for v,c in zip(vs,cs) if v-c>0]

print((sum(s)))
import numpy as np

N = int(eval(input()))
vs = list(map(int, input().split()))
cs = list(map(int, input().split()))
s = [v - c for v, c in zip(vs, cs) if v - c > 0]
print((sum(s)))

N = int(eval(input()))
vs = list(map(int, input().split()))
cs = list(map(int, input().split()))
s = [v - c for v, c in zip(vs, cs) if v - c > 0]
print((sum(s)))

-import numpy as np -