n = gets.to_i
v = gets.split(" ").map(&:to_i)
c = gets.split(" ").map(&:to_i)
ary = []
if n == 1
  if v[0] - c[0] >= 0
    ary << v[0] - c[0]
  else
    ary << 0
  end
  puts ary
else
  v.zip(c).each do |i|
    if i[0] > i[1] 
      ary << (i[0]-i[1])
    elsif i[0] == i[1]
      ary << 0
    else
      next
    end
  end
  puts ary.inject(&:+)
end
