void main() {
    int n = readln.chomp.to!int;
    int[] v = readln.split.to!(int[]);
    int[] c = readln.split.to!(int[]);
    int ans;
    foreach (i; 0 .. n) {
        int diff = v[i] - c[i];
        if (diff > 0) ans += diff;
    }
    ans.writeln;
}

import std.stdio;
import std.string;
import std.array;
import std.conv;
import std.algorithm;
import std.range;
import std.math;
import std.container;
import std.typecons;