function main(input) {
  const s = input.split("\n");

  const N = parseInt(s[0]);
  const VS = s[1].split(" ").map(function(n) { return parseInt(n, 10); });
  const CS = s[2].split(" ").map(function(n) { return parseInt(n, 10); });

  var X = 0;
  var Y = 0;

  for(var i=0; i<N; i++) {
    if(VS[i] > CS[i]) {
      X += VS[i];
      Y += CS[i];
    }
  }

  console.log(X - Y);
}

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