function Main(input) {
  var n = input.split("\n")[0];
  var v = input.split("\n")[1].split(" ");
  var c = input.split("\n")[2].split(" ");
  var val = 0;
  for(var i in v){
  	if(parseInt(v[i])>parseInt(c[i]))val+=v[i]-c[i];
  }
  console.log(val);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));