import std.stdio;
import std.conv;
import std.array;

void main()
{
    int N = readln.split[0].to!int;
    int[] V = readln.split.to!(int[]);
    int[] C = readln.split.to!(int[]);

    int ans = 0;
    foreach (i; 0..N){
        if (V[i] > C[i]) ans += V[i] - C[i];
    }

    writeln(ans);
}

