function Main(x) {
	tmp0 = x[0],v = x[1].split(" "),s = x[2].split(" "),a = 0;
	for(var i = 0 ; i <= v.length ; i++)if(v[i]-s[i] > 0) a += d;
	console.log(a);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8").split("\n"));
