import java.util.*;
import java.io.*;

public class Main {

    private static int solver(Integer N, Integer[] values, Integer[] costs){
        Integer results = 0;
        for (int i = 0; i < N; i++) {
            if(values[i] > costs[i]){
                results += values[i] - costs[i];
            }
        }
        return results;
    }

    public static void main(String[] args) {
        Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        Integer N = in.nextInt();
        Integer[] values = new Integer[N];
        Integer[] costs = new Integer[N];
        for (int i = 0; i < N; i++) {
            values[i] = in.nextInt();
        }
        for (int i = 0; i < N; i++) {
            costs[i] = in.nextInt();
        }
        System.out.println(solver(N, values, costs));


    }
} import java.util.*; util.* java import java.io.*; io.* java public class Main {

    private static int solver(Integer N, Integer[] values, Integer[] costs){
        Integer results = 0;
        for (int i = 0; i < N; i++) {
            if(values[i] > costs[i]){
                results += values[i] - costs[i];
            }
        }
        return results;
    }

    public static void main(String[] args) {
        Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        Integer N = in.nextInt();
        Integer[] values = new Integer[N];
        Integer[] costs = new Integer[N];
        for (int i = 0; i < N; i++) {
            values[i] = in.nextInt();
        }
        for (int i = 0; i < N; i++) {
            costs[i] = in.nextInt();
        }
        System.out.println(solver(N, values, costs));


    }
} Main private static int solver(Integer N, Integer[] values, Integer[] costs){
        Integer results = 0;
        for (int i = 0; i < N; i++) {
            if(values[i] > costs[i]){
                results += values[i] - costs[i];
            }
        }
        return results;
    } solver {
        Integer results = 0;
        for (int i = 0; i < N; i++) {
            if(values[i] > costs[i]){
                results += values[i] - costs[i];
            }
        }
        return results;
    } Integer results = 0; results 0 for (int i = 0; i < N; i++) {
            if(values[i] > costs[i]){
                results += values[i] - costs[i];
            }
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            if(values[i] > costs[i]){
                results += values[i] - costs[i];
            }
        } {
            if(values[i] > costs[i]){
                results += values[i] - costs[i];
            }
        } if(values[i] > costs[i]){
                results += values[i] - costs[i];
            } values[i] > costs[i] values[i] values i costs[i] costs i {
                results += values[i] - costs[i];
            } results += values[i] - costs[i] results values[i] - costs[i] values[i] values i costs[i] costs i return results; results Integer N N Integer[] values values Integer[] costs costs public static void main(String[] args) {
        Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        Integer N = in.nextInt();
        Integer[] values = new Integer[N];
        Integer[] costs = new Integer[N];
        for (int i = 0; i < N; i++) {
            values[i] = in.nextInt();
        }
        for (int i = 0; i < N; i++) {
            costs[i] = in.nextInt();
        }
        System.out.println(solver(N, values, costs));


    } main {
        Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        Integer N = in.nextInt();
        Integer[] values = new Integer[N];
        Integer[] costs = new Integer[N];
        for (int i = 0; i < N; i++) {
            values[i] = in.nextInt();
        }
        for (int i = 0; i < N; i++) {
            costs[i] = in.nextInt();
        }
        System.out.println(solver(N, values, costs));


    } Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in))); in new Scanner(new BufferedReader(new InputStreamReader(System.in))) Integer N = in.nextInt(); N in.nextInt() in.nextInt in Integer[] values = new Integer[N]; values new Integer[N] N Integer[] costs = new Integer[N]; costs new Integer[N] N for (int i = 0; i < N; i++) {
            values[i] = in.nextInt();
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            values[i] = in.nextInt();
        } {
            values[i] = in.nextInt();
        } values[i] = in.nextInt() values[i] values i in.nextInt() in.nextInt in for (int i = 0; i < N; i++) {
            costs[i] = in.nextInt();
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            costs[i] = in.nextInt();
        } {
            costs[i] = in.nextInt();
        } costs[i] = in.nextInt() costs[i] costs i in.nextInt() in.nextInt in System.out.println(solver(N, values, costs)) System.out.println System.out System System.out solver(N, values, costs) solver N values costs String[] args args public class Main {

    private static int solver(Integer N, Integer[] values, Integer[] costs){
        Integer results = 0;
        for (int i = 0; i < N; i++) {
            if(values[i] > costs[i]){
                results += values[i] - costs[i];
            }
        }
        return results;
    }

    public static void main(String[] args) {
        Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        Integer N = in.nextInt();
        Integer[] values = new Integer[N];
        Integer[] costs = new Integer[N];
        for (int i = 0; i < N; i++) {
            values[i] = in.nextInt();
        }
        for (int i = 0; i < N; i++) {
            costs[i] = in.nextInt();
        }
        System.out.println(solver(N, values, costs));


    }
} public class Main {

    private static int solver(Integer N, Integer[] values, Integer[] costs){
        Integer results = 0;
        for (int i = 0; i < N; i++) {
            if(values[i] > costs[i]){
                results += values[i] - costs[i];
            }
        }
        return results;
    }

    public static void main(String[] args) {
        Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        Integer N = in.nextInt();
        Integer[] values = new Integer[N];
        Integer[] costs = new Integer[N];
        for (int i = 0; i < N; i++) {
            values[i] = in.nextInt();
        }
        for (int i = 0; i < N; i++) {
            costs[i] = in.nextInt();
        }
        System.out.println(solver(N, values, costs));


    }
} Main
import java.util.*;
import java.io.*;

public class Main {

    private static int solver(Integer N, Integer[] values, Integer[] costs){
        Integer results = 0;
        for (int i = 0; i < N; i++) {
            if(values[i] > costs[i]){
                results += values[i] - costs[i];
            }
        }
        return results;
    }

    public static void main(String[] args) {
        Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        Integer N = in.nextInt();
        Integer[] values = new Integer[N];
        Integer[] costs = new Integer[N];
        for (int i = 0; i < N; i++) {
            values[i] = in.nextInt();
        }
        for (int i = 0; i < N; i++) {
            costs[i] = in.nextInt();
        }
        System.out.println(solver(N, values, costs));


    }
}
