import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = nextInt(sc);

        int V[] = getIntArray(sc, N);
        int C[] = getIntArray(sc, N);

        show(calc(V, C, N));
    }

    private static int calc(int[] V, int[] C, int N) {
        int answer = 0;

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

        return answer;
    }

    private static void show(int answer) {
        System.out.println(answer);
    }

    private static int[] getIntArray(Scanner sc, int range) {
        int A[] = new int[range];
        for (int i = 0; i < range; i++) {
            A[i] = nextInt(sc);
        }
        return A;
    }

    private static int nextInt(Scanner sc) {
        return Integer.parseInt(sc.next());
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = nextInt(sc);

        int V[] = getIntArray(sc, N);
        int C[] = getIntArray(sc, N);

        show(calc(V, C, N));
    }

    private static int calc(int[] V, int[] C, int N) {
        int answer = 0;

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

        return answer;
    }

    private static void show(int answer) {
        System.out.println(answer);
    }

    private static int[] getIntArray(Scanner sc, int range) {
        int A[] = new int[range];
        for (int i = 0; i < range; i++) {
            A[i] = nextInt(sc);
        }
        return A;
    }

    private static int nextInt(Scanner sc) {
        return Integer.parseInt(sc.next());
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = nextInt(sc);

        int V[] = getIntArray(sc, N);
        int C[] = getIntArray(sc, N);

        show(calc(V, C, N));
    } main {
        Scanner sc = new Scanner(System.in);

        int N = nextInt(sc);

        int V[] = getIntArray(sc, N);
        int C[] = getIntArray(sc, N);

        show(calc(V, C, N));
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = nextInt(sc); N nextInt(sc) nextInt sc int V[] = getIntArray(sc, N); V getIntArray(sc, N) getIntArray sc N int C[] = getIntArray(sc, N); C getIntArray(sc, N) getIntArray sc N show(calc(V, C, N)) show calc(V, C, N) calc V C N String[] args args private static int calc(int[] V, int[] C, int N) {
        int answer = 0;

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

        return answer;
    } calc {
        int answer = 0;

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

        return answer;
    } int answer = 0; answer 0 for (int i = 0; i < N; i++) {
            int diff = V[i] - C[i];
            if (diff > 0) answer += diff;
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            int diff = V[i] - C[i];
            if (diff > 0) answer += diff;
        } {
            int diff = V[i] - C[i];
            if (diff > 0) answer += diff;
        } int diff = V[i] - C[i]; diff V[i] - C[i] V[i] V i C[i] C i if (diff > 0) answer += diff; diff > 0 diff 0 answer += diff answer diff return answer; answer int[] V V int[] C C int N N private static void show(int answer) {
        System.out.println(answer);
    } show {
        System.out.println(answer);
    } System.out.println(answer) System.out.println System.out System System.out answer int answer answer private static int[] getIntArray(Scanner sc, int range) {
        int A[] = new int[range];
        for (int i = 0; i < range; i++) {
            A[i] = nextInt(sc);
        }
        return A;
    } getIntArray {
        int A[] = new int[range];
        for (int i = 0; i < range; i++) {
            A[i] = nextInt(sc);
        }
        return A;
    } int A[] = new int[range]; A new int[range] range for (int i = 0; i < range; i++) {
            A[i] = nextInt(sc);
        } int i = 0; int i = 0; i 0 i < range i range i++ i++ i {
            A[i] = nextInt(sc);
        } {
            A[i] = nextInt(sc);
        } A[i] = nextInt(sc) A[i] A i nextInt(sc) nextInt sc return A; A Scanner sc sc int range range private static int nextInt(Scanner sc) {
        return Integer.parseInt(sc.next());
    } nextInt {
        return Integer.parseInt(sc.next());
    } return Integer.parseInt(sc.next()); Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc Scanner sc sc public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = nextInt(sc);

        int V[] = getIntArray(sc, N);
        int C[] = getIntArray(sc, N);

        show(calc(V, C, N));
    }

    private static int calc(int[] V, int[] C, int N) {
        int answer = 0;

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

        return answer;
    }

    private static void show(int answer) {
        System.out.println(answer);
    }

    private static int[] getIntArray(Scanner sc, int range) {
        int A[] = new int[range];
        for (int i = 0; i < range; i++) {
            A[i] = nextInt(sc);
        }
        return A;
    }

    private static int nextInt(Scanner sc) {
        return Integer.parseInt(sc.next());
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = nextInt(sc);

        int V[] = getIntArray(sc, N);
        int C[] = getIntArray(sc, N);

        show(calc(V, C, N));
    }

    private static int calc(int[] V, int[] C, int N) {
        int answer = 0;

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

        return answer;
    }

    private static void show(int answer) {
        System.out.println(answer);
    }

    private static int[] getIntArray(Scanner sc, int range) {
        int A[] = new int[range];
        for (int i = 0; i < range; i++) {
            A[i] = nextInt(sc);
        }
        return A;
    }

    private static int nextInt(Scanner sc) {
        return Integer.parseInt(sc.next());
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = nextInt(sc);

        int V[] = getIntArray(sc, N);
        int C[] = getIntArray(sc, N);

        show(calc(V, C, N));
    }

    private static int calc(int[] V, int[] C, int N) {
        int answer = 0;

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

        return answer;
    }

    private static void show(int answer) {
        System.out.println(answer);
    }

    private static int[] getIntArray(Scanner sc, int range) {
        int A[] = new int[range];
        for (int i = 0; i < range; i++) {
            A[i] = nextInt(sc);
        }
        return A;
    }

    private static int nextInt(Scanner sc) {
        return Integer.parseInt(sc.next());
    }
}