N = gets.to_i
V = gets.split(' ').map(&:to_i)
C = gets.split(' ').map(&:to_i)

value = 0
k = 0
i = 0
price = 0
while k < N
  value = V[i] - C[i]
  ( price += value) if value > 0
  k += 1
  i += 1
end

puts price