function setUp(input) {
  input = input.split("\n");
  N = Number(input[0].split(" ")[0]);
  VList = input[1].split(" ").map(function (d, i) {
    return Number(d);
  });
  CList = input[2].split(" ").map(function (d, i) {
    return Number(d);
  });
  main();
}
function main() {
  var max = 0;
  VList.forEach(function (d, i) {
    var value = d - CList[i];
    if (value > 0) {
      max += value;
    }
  })
  console.log(max);
}

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