import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.PrintWriter;
import java.util.Scanner;

public class Main {

    // 11:07-
    public static void main(String[] args) throws Exception {
        try (BufferedInputStream in = new BufferedInputStream(System.in);
             PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out))) {

            Scanner sc = new Scanner(in);

            int N = sc.nextInt();
            int[] vs = new int[N];
            int[] cs = new int[N];
            for (int i = 0; i < N; i++) vs[i] = sc.nextInt();
            for (int i = 0; i < N; i++) cs[i] = sc.nextInt();

            long ret = 0L;
            for (int i = 0; i < vs.length; i++) {
                int delta = vs[i] - cs[i];
                if (delta > 0) ret += delta;
            }

            out.println(ret);
        }
    }

} import java.io.BufferedInputStream; BufferedInputStream java.io import java.io.BufferedOutputStream; BufferedOutputStream java.io import java.io.PrintWriter; PrintWriter java.io import java.util.Scanner; Scanner java.util public class Main {

    // 11:07-
    public static void main(String[] args) throws Exception {
        try (BufferedInputStream in = new BufferedInputStream(System.in);
             PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out))) {

            Scanner sc = new Scanner(in);

            int N = sc.nextInt();
            int[] vs = new int[N];
            int[] cs = new int[N];
            for (int i = 0; i < N; i++) vs[i] = sc.nextInt();
            for (int i = 0; i < N; i++) cs[i] = sc.nextInt();

            long ret = 0L;
            for (int i = 0; i < vs.length; i++) {
                int delta = vs[i] - cs[i];
                if (delta > 0) ret += delta;
            }

            out.println(ret);
        }
    }

} Main // 11:07-
    public static void main(String[] args) throws Exception {
        try (BufferedInputStream in = new BufferedInputStream(System.in);
             PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out))) {

            Scanner sc = new Scanner(in);

            int N = sc.nextInt();
            int[] vs = new int[N];
            int[] cs = new int[N];
            for (int i = 0; i < N; i++) vs[i] = sc.nextInt();
            for (int i = 0; i < N; i++) cs[i] = sc.nextInt();

            long ret = 0L;
            for (int i = 0; i < vs.length; i++) {
                int delta = vs[i] - cs[i];
                if (delta > 0) ret += delta;
            }

            out.println(ret);
        }
    } main {
        try (BufferedInputStream in = new BufferedInputStream(System.in);
             PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out))) {

            Scanner sc = new Scanner(in);

            int N = sc.nextInt();
            int[] vs = new int[N];
            int[] cs = new int[N];
            for (int i = 0; i < N; i++) vs[i] = sc.nextInt();
            for (int i = 0; i < N; i++) cs[i] = sc.nextInt();

            long ret = 0L;
            for (int i = 0; i < vs.length; i++) {
                int delta = vs[i] - cs[i];
                if (delta > 0) ret += delta;
            }

            out.println(ret);
        }
    } try (BufferedInputStream in = new BufferedInputStream(System.in);
             PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out))) {

            Scanner sc = new Scanner(in);

            int N = sc.nextInt();
            int[] vs = new int[N];
            int[] cs = new int[N];
            for (int i = 0; i < N; i++) vs[i] = sc.nextInt();
            for (int i = 0; i < N; i++) cs[i] = sc.nextInt();

            long ret = 0L;
            for (int i = 0; i < vs.length; i++) {
                int delta = vs[i] - cs[i];
                if (delta > 0) ret += delta;
            }

            out.println(ret);
        } {

            Scanner sc = new Scanner(in);

            int N = sc.nextInt();
            int[] vs = new int[N];
            int[] cs = new int[N];
            for (int i = 0; i < N; i++) vs[i] = sc.nextInt();
            for (int i = 0; i < N; i++) cs[i] = sc.nextInt();

            long ret = 0L;
            for (int i = 0; i < vs.length; i++) {
                int delta = vs[i] - cs[i];
                if (delta > 0) ret += delta;
            }

            out.println(ret);
        } BufferedInputStream in = new BufferedInputStream(System.in) BufferedInputStream in = new BufferedInputStream(System.in) new BufferedInputStream(System.in) PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out)) PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out)) new PrintWriter(new BufferedOutputStream(System.out)) Scanner sc = new Scanner(in); sc new Scanner(in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int[] vs = new int[N]; vs new int[N] N int[] cs = new int[N]; cs new int[N] N for (int i = 0; i < N; i++) vs[i] = sc.nextInt(); int i = 0; int i = 0; i 0 i < N i N i++ i++ i vs[i] = sc.nextInt(); vs[i] = sc.nextInt() vs[i] vs i sc.nextInt() sc.nextInt sc for (int i = 0; i < N; i++) cs[i] = sc.nextInt(); int i = 0; int i = 0; i 0 i < N i N i++ i++ i cs[i] = sc.nextInt(); cs[i] = sc.nextInt() cs[i] cs i sc.nextInt() sc.nextInt sc long ret = 0L; ret 0L for (int i = 0; i < vs.length; i++) {
                int delta = vs[i] - cs[i];
                if (delta > 0) ret += delta;
            } int i = 0; int i = 0; i 0 i < vs.length i vs.length vs vs.length i++ i++ i {
                int delta = vs[i] - cs[i];
                if (delta > 0) ret += delta;
            } {
                int delta = vs[i] - cs[i];
                if (delta > 0) ret += delta;
            } int delta = vs[i] - cs[i]; delta vs[i] - cs[i] vs[i] vs i cs[i] cs i if (delta > 0) ret += delta; delta > 0 delta 0 ret += delta ret delta out.println(ret) out.println out ret String[] args args public class Main {

    // 11:07-
    public static void main(String[] args) throws Exception {
        try (BufferedInputStream in = new BufferedInputStream(System.in);
             PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out))) {

            Scanner sc = new Scanner(in);

            int N = sc.nextInt();
            int[] vs = new int[N];
            int[] cs = new int[N];
            for (int i = 0; i < N; i++) vs[i] = sc.nextInt();
            for (int i = 0; i < N; i++) cs[i] = sc.nextInt();

            long ret = 0L;
            for (int i = 0; i < vs.length; i++) {
                int delta = vs[i] - cs[i];
                if (delta > 0) ret += delta;
            }

            out.println(ret);
        }
    }

} public class Main {

    // 11:07-
    public static void main(String[] args) throws Exception {
        try (BufferedInputStream in = new BufferedInputStream(System.in);
             PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out))) {

            Scanner sc = new Scanner(in);

            int N = sc.nextInt();
            int[] vs = new int[N];
            int[] cs = new int[N];
            for (int i = 0; i < N; i++) vs[i] = sc.nextInt();
            for (int i = 0; i < N; i++) cs[i] = sc.nextInt();

            long ret = 0L;
            for (int i = 0; i < vs.length; i++) {
                int delta = vs[i] - cs[i];
                if (delta > 0) ret += delta;
            }

            out.println(ret);
        }
    }

} Main
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.PrintWriter;
import java.util.Scanner;

public class Main {

    // 11:07-
    public static void main(String[] args) throws Exception {
        try (BufferedInputStream in = new BufferedInputStream(System.in);
             PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out))) {

            Scanner sc = new Scanner(in);

            int N = sc.nextInt();
            int[] vs = new int[N];
            int[] cs = new int[N];
            for (int i = 0; i < N; i++) vs[i] = sc.nextInt();
            for (int i = 0; i < N; i++) cs[i] = sc.nextInt();

            long ret = 0L;
            for (int i = 0; i < vs.length; i++) {
                int delta = vs[i] - cs[i];
                if (delta > 0) ret += delta;
            }

            out.println(ret);
        }
    }

}
