n = gets
vr = gets
cr = gets
if n != nil  && vr != nil && cr != nil then
  n = n.to_i
  vr = vr.split(" ").map(&:to_i)
  cr = cr.split(" ").map(&:to_i)

  ans = 0

  for i in 0..(n-1) do
    if (vr[i] - cr[i]) > 0 then
      ans = ans + vr[i] - cr[i]
    end
  end


puts ans
end
