function main(input) {
  const args = input.split('\n');
  const N = parseInt(args[0], 10);
  const VA = args[1].split(' ').map(n => parseInt(n, 10));
  const CA = args[2].split(' ').map(n => parseInt(n, 10));
  //VAからCAを引いたときの値を入れる配列
  let GA = [];
  let ans = 0;
  
  for (let i = 0; i < N; i++) {
    GA.push(VA[i] - CA[i]);
  }
  
  for (let i = 0; i < N; i++) {
    if (GA[i] > 0) { ans += GA[i]; }
  }
  
  console.log(ans);
}

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