function Main(input){
  input = input.split("\n");
  inputStr = input[0].split(" ");
  var N = Number.parseInt(inputStr[0]);
  var V = input[1].split(" ");
  var C = input[2].split(" ");
  var sum = 0;
  var i = 0;
  for ( i = 0; i < N; i++){
    if( Number.parseInt(V[i]) - Number.parseInt(C[i]) > 0 ){
      sum = sum + Number.parseInt(V[i]) - Number.parseInt(C[i]);
    }
  }
  console.log(sum);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));