N = gets.chomp.to_i
V = gets.split
C = gets.split

v = []
c = []
d = []
answer = 0

for x in 0...N
  v[x] = V[x].to_i
  c[x] = C[x].to_i
  d[x] = v[x] - c[x]
  if d[x] > 0
    answer += d[x]
  end
end

puts answer