function main(input) {
  var n = input.split("\n")[0]-0;
  var v = input.split("\n")[1].split(" ");
  var c = input.split("\n")[2].split(" ");
  var ans = 0;
  for(var i=0;i<n;i++){
    var vv = v[i]-0;
    var cc = c[i]-0;
    if(vv>cc) ans += vv-cc;
  }
  console.log(ans);
}

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