import java.util.Scanner;

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

public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int N;
        int[] V,C,Z;
        int sum = 0;
        N = sc.nextInt();
        V = new int[N];
        C = new int[N];
        Z = new int[N];
        for (int i = 0; i < N; i++) {
            V[i] = sc.nextInt();
        }
        for (int i = 0; i < N; i++) {
            C[i] = sc.nextInt();
        }
        for (int i = 0; i < N; i++) {
            Z[i] = V[i] - C[i];
        }
        for (int i = 0; i < N; i++) {
            if (Z[i] > 0) {
                sum = sum + Z[i];
            }
        }
        System.out.println(sum);
    }
}