'use strict'
function Main(input){
  input=input.trim().split(/\n/);
  var N=input[0]-0;
  var V=input[1].trim().split(/\s+/).map(x=>x-0);
  var C=input[2].trim().split(/\s+/).map(x=>x-0);
  var ans=V.reduce((a,v,i)=>a+((v>C[i])?(v-C[i]):0),0);
  console.log(ans);
}

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