'use strict';

function Main(input) {
  const N = Number(input.split("\n")[0])
  const V = input.split("\n")[1].split(" ").map(x => Number(x))
  const C = input.split("\n")[2].split(" ").map(x => Number(x))

  let ans = 0
  for (let i=0; i<N; i++) {
    if (V[i] - C[i] > 0) {
      ans += (V[i] - C[i])
    }
  }

  console.log(ans)
};

Main(require("fs").readFileSync("/dev/stdin", "utf8").trim());
