import java.util.Scanner;

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

        int n = scanner.nextInt();
        int result = 0;
        int[] subResults = new int[n];
        for (int i = 0; i < n; i++) {
            subResults[i] = scanner.nextInt();
        }
        for (int i = 0; i < n; i++) {
            subResults[i] -= scanner.nextInt();
            if (subResults[i] > 0) {
                result += subResults[i];
            }
        }
        System.out.println(result);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int n = scanner.nextInt();
        int result = 0;
        int[] subResults = new int[n];
        for (int i = 0; i < n; i++) {
            subResults[i] = scanner.nextInt();
        }
        for (int i = 0; i < n; i++) {
            subResults[i] -= scanner.nextInt();
            if (subResults[i] > 0) {
                result += subResults[i];
            }
        }
        System.out.println(result);
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int n = scanner.nextInt();
        int result = 0;
        int[] subResults = new int[n];
        for (int i = 0; i < n; i++) {
            subResults[i] = scanner.nextInt();
        }
        for (int i = 0; i < n; i++) {
            subResults[i] -= scanner.nextInt();
            if (subResults[i] > 0) {
                result += subResults[i];
            }
        }
        System.out.println(result);
    } main {
        Scanner scanner = new Scanner(System.in);

        int n = scanner.nextInt();
        int result = 0;
        int[] subResults = new int[n];
        for (int i = 0; i < n; i++) {
            subResults[i] = scanner.nextInt();
        }
        for (int i = 0; i < n; i++) {
            subResults[i] -= scanner.nextInt();
            if (subResults[i] > 0) {
                result += subResults[i];
            }
        }
        System.out.println(result);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner int result = 0; result 0 int[] subResults = new int[n]; subResults new int[n] n for (int i = 0; i < n; i++) {
            subResults[i] = scanner.nextInt();
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            subResults[i] = scanner.nextInt();
        } {
            subResults[i] = scanner.nextInt();
        } subResults[i] = scanner.nextInt() subResults[i] subResults i scanner.nextInt() scanner.nextInt scanner for (int i = 0; i < n; i++) {
            subResults[i] -= scanner.nextInt();
            if (subResults[i] > 0) {
                result += subResults[i];
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            subResults[i] -= scanner.nextInt();
            if (subResults[i] > 0) {
                result += subResults[i];
            }
        } {
            subResults[i] -= scanner.nextInt();
            if (subResults[i] > 0) {
                result += subResults[i];
            }
        } subResults[i] -= scanner.nextInt() subResults[i] subResults i scanner.nextInt() scanner.nextInt scanner if (subResults[i] > 0) {
                result += subResults[i];
            } subResults[i] > 0 subResults[i] subResults i 0 {
                result += subResults[i];
            } result += subResults[i] result subResults[i] subResults i System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int n = scanner.nextInt();
        int result = 0;
        int[] subResults = new int[n];
        for (int i = 0; i < n; i++) {
            subResults[i] = scanner.nextInt();
        }
        for (int i = 0; i < n; i++) {
            subResults[i] -= scanner.nextInt();
            if (subResults[i] > 0) {
                result += subResults[i];
            }
        }
        System.out.println(result);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int n = scanner.nextInt();
        int result = 0;
        int[] subResults = new int[n];
        for (int i = 0; i < n; i++) {
            subResults[i] = scanner.nextInt();
        }
        for (int i = 0; i < n; i++) {
            subResults[i] -= scanner.nextInt();
            if (subResults[i] > 0) {
                result += subResults[i];
            }
        }
        System.out.println(result);
    }
} Main
import java.util.Scanner;

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

        int n = scanner.nextInt();
        int result = 0;
        int[] subResults = new int[n];
        for (int i = 0; i < n; i++) {
            subResults[i] = scanner.nextInt();
        }
        for (int i = 0; i < n; i++) {
            subResults[i] -= scanner.nextInt();
            if (subResults[i] > 0) {
                result += subResults[i];
            }
        }
        System.out.println(result);
    }
}
