N = gets.to_i

pys = []
2.times do
  pys << gets.split.map(&:to_i)
end

i = 0

result = 0

while i < N
	if pys[0][i] - pys[1][i] > 0
		result += pys[0][i] - pys[1][i]
	else
	end
	i += 1
end

puts result