import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
	// write your code here
        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();
        int[] V = new int[N], C = new int[N];
        int max = 0;

        for (int i = 0; i < N; i ++) {
            V[i] = scanner.nextInt();
        }

        for (int i = 0; i < N; i ++) {
            C[i] = scanner.nextInt();
        }

        for (int i = 0; i < N; i ++) {
            if (V[i] - C[i] > 0) max += V[i] - C[i];
        }

        System.out.println(max);

    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
	// write your code here
        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();
        int[] V = new int[N], C = new int[N];
        int max = 0;

        for (int i = 0; i < N; i ++) {
            V[i] = scanner.nextInt();
        }

        for (int i = 0; i < N; i ++) {
            C[i] = scanner.nextInt();
        }

        for (int i = 0; i < N; i ++) {
            if (V[i] - C[i] > 0) max += V[i] - C[i];
        }

        System.out.println(max);

    }
} Main public static void main(String[] args) {
	// write your code here
        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();
        int[] V = new int[N], C = new int[N];
        int max = 0;

        for (int i = 0; i < N; i ++) {
            V[i] = scanner.nextInt();
        }

        for (int i = 0; i < N; i ++) {
            C[i] = scanner.nextInt();
        }

        for (int i = 0; i < N; i ++) {
            if (V[i] - C[i] > 0) max += V[i] - C[i];
        }

        System.out.println(max);

    } main {
	// write your code here
        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();
        int[] V = new int[N], C = new int[N];
        int max = 0;

        for (int i = 0; i < N; i ++) {
            V[i] = scanner.nextInt();
        }

        for (int i = 0; i < N; i ++) {
            C[i] = scanner.nextInt();
        }

        for (int i = 0; i < N; i ++) {
            if (V[i] - C[i] > 0) max += V[i] - C[i];
        }

        System.out.println(max);

    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int N = scanner.nextInt(); N scanner.nextInt() scanner.nextInt scanner int[] V = new int[N] V new int[N] N C = new int[N]; C new int[N] N int max = 0; max 0 for (int i = 0; i < N; i ++) {
            V[i] = scanner.nextInt();
        } int i = 0; int i = 0; i 0 i < N i N i ++ i ++ i {
            V[i] = scanner.nextInt();
        } {
            V[i] = scanner.nextInt();
        } V[i] = scanner.nextInt() V[i] V i scanner.nextInt() scanner.nextInt scanner for (int i = 0; i < N; i ++) {
            C[i] = scanner.nextInt();
        } int i = 0; int i = 0; i 0 i < N i N i ++ i ++ i {
            C[i] = scanner.nextInt();
        } {
            C[i] = scanner.nextInt();
        } C[i] = scanner.nextInt() C[i] C i scanner.nextInt() scanner.nextInt scanner for (int i = 0; i < N; i ++) {
            if (V[i] - C[i] > 0) max += V[i] - C[i];
        } int i = 0; int i = 0; i 0 i < N i N i ++ i ++ i {
            if (V[i] - C[i] > 0) max += V[i] - C[i];
        } {
            if (V[i] - C[i] > 0) max += V[i] - C[i];
        } if (V[i] - C[i] > 0) max += V[i] - C[i]; V[i] - C[i] > 0 V[i] - C[i] V[i] V i C[i] C i 0 max += V[i] - C[i] max V[i] - C[i] V[i] V i C[i] C i System.out.println(max) System.out.println System.out System System.out max String[] args args public class Main {

    public static void main(String[] args) {
	// write your code here
        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();
        int[] V = new int[N], C = new int[N];
        int max = 0;

        for (int i = 0; i < N; i ++) {
            V[i] = scanner.nextInt();
        }

        for (int i = 0; i < N; i ++) {
            C[i] = scanner.nextInt();
        }

        for (int i = 0; i < N; i ++) {
            if (V[i] - C[i] > 0) max += V[i] - C[i];
        }

        System.out.println(max);

    }
} public class Main {

    public static void main(String[] args) {
	// write your code here
        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();
        int[] V = new int[N], C = new int[N];
        int max = 0;

        for (int i = 0; i < N; i ++) {
            V[i] = scanner.nextInt();
        }

        for (int i = 0; i < N; i ++) {
            C[i] = scanner.nextInt();
        }

        for (int i = 0; i < N; i ++) {
            if (V[i] - C[i] > 0) max += V[i] - C[i];
        }

        System.out.println(max);

    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
	// write your code here
        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();
        int[] V = new int[N], C = new int[N];
        int max = 0;

        for (int i = 0; i < N; i ++) {
            V[i] = scanner.nextInt();
        }

        for (int i = 0; i < N; i ++) {
            C[i] = scanner.nextInt();
        }

        for (int i = 0; i < N; i ++) {
            if (V[i] - C[i] > 0) max += V[i] - C[i];
        }

        System.out.println(max);

    }
}
