local N = io.read("n")
local V = {} for i=1,N do V[i] = io.read("n") end
local C = {} for i=1,N do C[i] = io.read("n") end
local ans = 0
for i=1,N do
    local diff = V[i] - C[i]
    if diff > 0 then
        ans = ans + diff
    end
end
print(ans)
