import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        sc.nextLine();
        String[] tmpV = sc.nextLine().split(" ");
        String[] tmpC = sc.nextLine().split(" ");

        int max = 0;
        for (int i = 0; i<N; i++) {
            int t = Integer.valueOf(tmpV[i])-Integer.valueOf(tmpC[i]);
            if (0<t) {
                max += t;
            }
        }

        System.out.println(max);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        sc.nextLine();
        String[] tmpV = sc.nextLine().split(" ");
        String[] tmpC = sc.nextLine().split(" ");

        int max = 0;
        for (int i = 0; i<N; i++) {
            int t = Integer.valueOf(tmpV[i])-Integer.valueOf(tmpC[i]);
            if (0<t) {
                max += t;
            }
        }

        System.out.println(max);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        sc.nextLine();
        String[] tmpV = sc.nextLine().split(" ");
        String[] tmpC = sc.nextLine().split(" ");

        int max = 0;
        for (int i = 0; i<N; i++) {
            int t = Integer.valueOf(tmpV[i])-Integer.valueOf(tmpC[i]);
            if (0<t) {
                max += t;
            }
        }

        System.out.println(max);
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        sc.nextLine();
        String[] tmpV = sc.nextLine().split(" ");
        String[] tmpC = sc.nextLine().split(" ");

        int max = 0;
        for (int i = 0; i<N; i++) {
            int t = Integer.valueOf(tmpV[i])-Integer.valueOf(tmpC[i]);
            if (0<t) {
                max += t;
            }
        }

        System.out.println(max);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc sc.nextLine() sc.nextLine sc String[] tmpV = sc.nextLine().split(" "); tmpV sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " String[] tmpC = sc.nextLine().split(" "); tmpC sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " int max = 0; max 0 for (int i = 0; i<N; i++) {
            int t = Integer.valueOf(tmpV[i])-Integer.valueOf(tmpC[i]);
            if (0<t) {
                max += t;
            }
        } int i = 0; int i = 0; i 0 i<N i N i++ i++ i {
            int t = Integer.valueOf(tmpV[i])-Integer.valueOf(tmpC[i]);
            if (0<t) {
                max += t;
            }
        } {
            int t = Integer.valueOf(tmpV[i])-Integer.valueOf(tmpC[i]);
            if (0<t) {
                max += t;
            }
        } int t = Integer.valueOf(tmpV[i])-Integer.valueOf(tmpC[i]); t Integer.valueOf(tmpV[i])-Integer.valueOf(tmpC[i]) Integer.valueOf(tmpV[i]) Integer.valueOf Integer tmpV[i] tmpV i Integer.valueOf(tmpC[i]) Integer.valueOf Integer tmpC[i] tmpC i if (0<t) {
                max += t;
            } 0<t 0 t {
                max += t;
            } max += t max t 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) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        sc.nextLine();
        String[] tmpV = sc.nextLine().split(" ");
        String[] tmpC = sc.nextLine().split(" ");

        int max = 0;
        for (int i = 0; i<N; i++) {
            int t = Integer.valueOf(tmpV[i])-Integer.valueOf(tmpC[i]);
            if (0<t) {
                max += t;
            }
        }

        System.out.println(max);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        sc.nextLine();
        String[] tmpV = sc.nextLine().split(" ");
        String[] tmpC = sc.nextLine().split(" ");

        int max = 0;
        for (int i = 0; i<N; i++) {
            int t = Integer.valueOf(tmpV[i])-Integer.valueOf(tmpC[i]);
            if (0<t) {
                max += t;
            }
        }

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

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        sc.nextLine();
        String[] tmpV = sc.nextLine().split(" ");
        String[] tmpC = sc.nextLine().split(" ");

        int max = 0;
        for (int i = 0; i<N; i++) {
            int t = Integer.valueOf(tmpV[i])-Integer.valueOf(tmpC[i]);
            if (0<t) {
                max += t;
            }
        }

        System.out.println(max);
    }
}