#!/usr/bin/env python3

n = int(eval(input()))

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

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

x = 0

y = 0

for i in range(n):

    if v[i] >= c[i]:

        x += v[i]

        y += c[i]

print((x - y))

#!/usr/bin/env python3

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]:

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

print(ans)

#!/usr/bin/env python3
n = int(eval(input()))
v = list(map(int, input().split()))
c = list(map(int, input().split()))
x = 0
y = 0
for i in range(n):
    if v[i] >= c[i]:
        x += v[i]
        y += c[i]
print((x - y))

#!/usr/bin/env python3
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]:
        ans += v[i] - c[i]
print(ans)

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