function main(input) {
	var jl = input.split("\n")[1].split(" ");
	var cl = input.split("\n")[2].split(" ");
	var r = 0;
	jl.forEach((j, i) => {
		var s = +j - +cl[i];
		if(s > 0) {
			r += s;
		}
	});
	console.log(r);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));