// inputに入力データ全体が入る
function Main(input) {
    // 入力を解釈
	// input = input.split("\n");
	tmp0 = input[0];
	tmp1Array = input[1].split(" ");
	tmp2Array = input[2].split(" ");
	
	var length = tmp1Array.length;
	var totalValue = 0;
	for(var i = 0 ; i <= length ; i++){
	    var temp = tmp1Array[i] -  tmp2Array[i];
	    
	    if(temp > 0){
	        totalValue += temp;
	    }
	}
	console.log(totalValue);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8").split("\n"));
