// inputに入力データ全体が入る
function Main(input) {
	// 1行目がinput[0], 2行目がinput[1], …に入る
    input = input.split("\n");
    // 数値の配列を作る
    const numList0 = input[0].split(' ').map(x => parseInt(x, 10));
    const N = numList0[0];
    const VList = input[1].split(' ').map(x => parseInt(x, 10));
    const CList = input[2].split(' ').map(x => parseInt(x, 10));

    var result = 0;
//    const XYDiffList = [];
    for (var i = 0; i < N; i++) {
        // 正の時だけ要素追加
        var diff = VList[i] - CList[i];
        if (diff > 0) {
//            XYDiffList.push(diff);
            result += diff;
        }
    }

    console.log(result);
}
 
Main(require("fs").readFileSync("/dev/stdin", "utf8"));