import java.util.Scanner;
public class Main {
    public static void main(String args[]) {
        Scanner s = new Scanner(System.in);
        int N = s.nextInt();
        int[] V = new int[N];
        int[] C = new int[N];
        for (int i = 0; i < N; i++) {
            V[i] = s.nextInt();
        }
        for (int i = 0; i < N; i++) {
            C[i] = s.nextInt();
        }
        int ans = 0;
        for (int i = 0; i < N; i++) {
            if (V[i] > C[i])
                ans += V[i] - C[i];
        }
        System.out.print(ans);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String args[]) {
        Scanner s = new Scanner(System.in);
        int N = s.nextInt();
        int[] V = new int[N];
        int[] C = new int[N];
        for (int i = 0; i < N; i++) {
            V[i] = s.nextInt();
        }
        for (int i = 0; i < N; i++) {
            C[i] = s.nextInt();
        }
        int ans = 0;
        for (int i = 0; i < N; i++) {
            if (V[i] > C[i])
                ans += V[i] - C[i];
        }
        System.out.print(ans);
    }
} Main public static void main(String args[]) {
        Scanner s = new Scanner(System.in);
        int N = s.nextInt();
        int[] V = new int[N];
        int[] C = new int[N];
        for (int i = 0; i < N; i++) {
            V[i] = s.nextInt();
        }
        for (int i = 0; i < N; i++) {
            C[i] = s.nextInt();
        }
        int ans = 0;
        for (int i = 0; i < N; i++) {
            if (V[i] > C[i])
                ans += V[i] - C[i];
        }
        System.out.print(ans);
    } main {
        Scanner s = new Scanner(System.in);
        int N = s.nextInt();
        int[] V = new int[N];
        int[] C = new int[N];
        for (int i = 0; i < N; i++) {
            V[i] = s.nextInt();
        }
        for (int i = 0; i < N; i++) {
            C[i] = s.nextInt();
        }
        int ans = 0;
        for (int i = 0; i < N; i++) {
            if (V[i] > C[i])
                ans += V[i] - C[i];
        }
        System.out.print(ans);
    } Scanner s = new Scanner(System.in); s new Scanner(System.in) int N = s.nextInt(); N s.nextInt() s.nextInt s int[] V = new int[N]; V new int[N] N int[] C = new int[N]; C new int[N] N for (int i = 0; i < N; i++) {
            V[i] = s.nextInt();
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            V[i] = s.nextInt();
        } {
            V[i] = s.nextInt();
        } V[i] = s.nextInt() V[i] V i s.nextInt() s.nextInt s for (int i = 0; i < N; i++) {
            C[i] = s.nextInt();
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            C[i] = s.nextInt();
        } {
            C[i] = s.nextInt();
        } C[i] = s.nextInt() C[i] C i s.nextInt() s.nextInt s int ans = 0; ans 0 for (int i = 0; i < N; i++) {
            if (V[i] > C[i])
                ans += V[i] - C[i];
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            if (V[i] > C[i])
                ans += V[i] - C[i];
        } {
            if (V[i] > C[i])
                ans += V[i] - C[i];
        } if (V[i] > C[i])
                ans += V[i] - C[i]; V[i] > C[i] V[i] V i C[i] C i ans += V[i] - C[i] ans V[i] - C[i] V[i] V i C[i] C i System.out.print(ans) System.out.print System.out System System.out ans String args[] args public class Main {
    public static void main(String args[]) {
        Scanner s = new Scanner(System.in);
        int N = s.nextInt();
        int[] V = new int[N];
        int[] C = new int[N];
        for (int i = 0; i < N; i++) {
            V[i] = s.nextInt();
        }
        for (int i = 0; i < N; i++) {
            C[i] = s.nextInt();
        }
        int ans = 0;
        for (int i = 0; i < N; i++) {
            if (V[i] > C[i])
                ans += V[i] - C[i];
        }
        System.out.print(ans);
    }
} public class Main {
    public static void main(String args[]) {
        Scanner s = new Scanner(System.in);
        int N = s.nextInt();
        int[] V = new int[N];
        int[] C = new int[N];
        for (int i = 0; i < N; i++) {
            V[i] = s.nextInt();
        }
        for (int i = 0; i < N; i++) {
            C[i] = s.nextInt();
        }
        int ans = 0;
        for (int i = 0; i < N; i++) {
            if (V[i] > C[i])
                ans += V[i] - C[i];
        }
        System.out.print(ans);
    }
} Main
import java.util.Scanner;
public class Main {
    public static void main(String args[]) {
        Scanner s = new Scanner(System.in);
        int N = s.nextInt();
        int[] V = new int[N];
        int[] C = new int[N];
        for (int i = 0; i < N; i++) {
            V[i] = s.nextInt();
        }
        for (int i = 0; i < N; i++) {
            C[i] = s.nextInt();
        }
        int ans = 0;
        for (int i = 0; i < N; i++) {
            if (V[i] > C[i])
                ans += V[i] - C[i];
        }
        System.out.print(ans);
    }
}
