local n = io.read("*n")
local v, c = {}, {}
for i = 1, n do v[i] = io.read("*n") end
for i = 1, n do c[i] = io.read("*n") end
local sum = 0
for i = 1, n do
  if(c[i] < v[i]) then sum = sum + v[i] - c[i] end
end
print(sum)
