import java.util.Scanner;

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

        int v[] = new int[n];
        for (int i = 0; i < n; i++) {
            v[i] = in.nextInt();
        }

        int total = 0;
        for (int i = 0; i < n; i++) {
            int c = in.nextInt();

            if (v[i] > c) {
                total += v[i] - c;
            }
        }

        System.out.println(total);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();

        int v[] = new int[n];
        for (int i = 0; i < n; i++) {
            v[i] = in.nextInt();
        }

        int total = 0;
        for (int i = 0; i < n; i++) {
            int c = in.nextInt();

            if (v[i] > c) {
                total += v[i] - c;
            }
        }

        System.out.println(total);
    }
} Main public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();

        int v[] = new int[n];
        for (int i = 0; i < n; i++) {
            v[i] = in.nextInt();
        }

        int total = 0;
        for (int i = 0; i < n; i++) {
            int c = in.nextInt();

            if (v[i] > c) {
                total += v[i] - c;
            }
        }

        System.out.println(total);
    } main {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();

        int v[] = new int[n];
        for (int i = 0; i < n; i++) {
            v[i] = in.nextInt();
        }

        int total = 0;
        for (int i = 0; i < n; i++) {
            int c = in.nextInt();

            if (v[i] > c) {
                total += v[i] - c;
            }
        }

        System.out.println(total);
    } Scanner in = new Scanner(System.in); in new Scanner(System.in) int n = in.nextInt(); n in.nextInt() in.nextInt in int v[] = new int[n]; v new int[n] n for (int i = 0; i < n; i++) {
            v[i] = in.nextInt();
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            v[i] = in.nextInt();
        } {
            v[i] = in.nextInt();
        } v[i] = in.nextInt() v[i] v i in.nextInt() in.nextInt in int total = 0; total 0 for (int i = 0; i < n; i++) {
            int c = in.nextInt();

            if (v[i] > c) {
                total += v[i] - c;
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            int c = in.nextInt();

            if (v[i] > c) {
                total += v[i] - c;
            }
        } {
            int c = in.nextInt();

            if (v[i] > c) {
                total += v[i] - c;
            }
        } int c = in.nextInt(); c in.nextInt() in.nextInt in if (v[i] > c) {
                total += v[i] - c;
            } v[i] > c v[i] v i c {
                total += v[i] - c;
            } total += v[i] - c total v[i] - c v[i] v i c System.out.println(total) System.out.println System.out System System.out total String[] args args public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();

        int v[] = new int[n];
        for (int i = 0; i < n; i++) {
            v[i] = in.nextInt();
        }

        int total = 0;
        for (int i = 0; i < n; i++) {
            int c = in.nextInt();

            if (v[i] > c) {
                total += v[i] - c;
            }
        }

        System.out.println(total);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();

        int v[] = new int[n];
        for (int i = 0; i < n; i++) {
            v[i] = in.nextInt();
        }

        int total = 0;
        for (int i = 0; i < n; i++) {
            int c = in.nextInt();

            if (v[i] > c) {
                total += v[i] - c;
            }
        }

        System.out.println(total);
    }
} Main
import java.util.Scanner;

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

        int v[] = new int[n];
        for (int i = 0; i < n; i++) {
            v[i] = in.nextInt();
        }

        int total = 0;
        for (int i = 0; i < n; i++) {
            int c = in.nextInt();

            if (v[i] > c) {
                total += v[i] - c;
            }
        }

        System.out.println(total);
    }
}
