function main(input) {
    var args = input.split('\n');
  	var vArg = args[1].split(' ');
  	var cArg = args[2].split(' ');
  	var c = 0;
  	for(var i = 0; i < vArg.length; i++){
    	if(vArg[i] > cArg[i]){
        	c += vArg[i] - cArg[i]
        }
    }
    console.log(c);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));