'use strict'
function Main(input) {

  let tmp = input.split('\n');
  let Num = parseInt(tmp[0]);
  let Vle = tmp[1].split(' ').map(Number);
  let Cst = tmp[2].split(' ').map(Number);

  let maxVle = 0;
  for (let i = 0; i < Num; i++) {
    if (Vle[i] - Cst[i] > 0) {
      maxVle += Vle[i] - Cst[i];
    }
  }
  console.log(maxVle);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));