count=gets.to_i
let=gets.chomp.split.map(&:to_i)
let2=gets.chomp.split.map(&:to_i)
answer=0
count.times do |timesCount|
  test=let[timesCount]-let2[timesCount]
  if test >0 then
      answer += test
  end      
end
puts(answer)