attrs = Array.new
while line = $stdin.gets
    attrs << line.chomp.split.map{|v| v.to_i }
end

N = attrs.shift[0]
V = attrs.shift
C = attrs.shift

r = []

for i in 0..(N - 1) do
  r << V[i] - C[i]
end

result = 0

r.each{|n| result += n if n > 0 }
puts result