"use strict"

function Main(input) {
  input = input.split('\n');
  let N = parseInt(input.shift());
  let array = input.map(str => str.split(/\s/).map(value => value - 0));
  let result = 0;
  for (let i=0;i<N;i++){
    let tmp = array[0][i] - array[1][i];
    if(tmp > 0){
      result += tmp;
    }
  }
  console.log(result)
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
