import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        int N;
        int result = 0;
        Scanner scan = new Scanner(System.in);

        N = scan.nextInt(); 
        List<Integer> V = new ArrayList<>(N);
        List<Integer> C = new ArrayList<>(N);

        for (int i = 0; i < N; i++) {
            V.add(scan.nextInt());
        }
        for (int i = 0; i < N; i++) {
            C.add(scan.nextInt());
            if (V.get(i) > C.get(i)) {
                result += V.get(i) - C.get(i);
            }
        }
        System.out.println(result);

    }
} import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        int N;
        int result = 0;
        Scanner scan = new Scanner(System.in);

        N = scan.nextInt(); 
        List<Integer> V = new ArrayList<>(N);
        List<Integer> C = new ArrayList<>(N);

        for (int i = 0; i < N; i++) {
            V.add(scan.nextInt());
        }
        for (int i = 0; i < N; i++) {
            C.add(scan.nextInt());
            if (V.get(i) > C.get(i)) {
                result += V.get(i) - C.get(i);
            }
        }
        System.out.println(result);

    }
} Main public static void main(String[] args) {
        int N;
        int result = 0;
        Scanner scan = new Scanner(System.in);

        N = scan.nextInt(); 
        List<Integer> V = new ArrayList<>(N);
        List<Integer> C = new ArrayList<>(N);

        for (int i = 0; i < N; i++) {
            V.add(scan.nextInt());
        }
        for (int i = 0; i < N; i++) {
            C.add(scan.nextInt());
            if (V.get(i) > C.get(i)) {
                result += V.get(i) - C.get(i);
            }
        }
        System.out.println(result);

    } main {
        int N;
        int result = 0;
        Scanner scan = new Scanner(System.in);

        N = scan.nextInt(); 
        List<Integer> V = new ArrayList<>(N);
        List<Integer> C = new ArrayList<>(N);

        for (int i = 0; i < N; i++) {
            V.add(scan.nextInt());
        }
        for (int i = 0; i < N; i++) {
            C.add(scan.nextInt());
            if (V.get(i) > C.get(i)) {
                result += V.get(i) - C.get(i);
            }
        }
        System.out.println(result);

    } int N; N int result = 0; result 0 Scanner scan = new Scanner(System.in); scan new Scanner(System.in) N = scan.nextInt() N scan.nextInt() scan.nextInt scan List<Integer> V = new ArrayList<>(N); V new ArrayList<>(N) List<Integer> C = new ArrayList<>(N); C new ArrayList<>(N) for (int i = 0; i < N; i++) {
            V.add(scan.nextInt());
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            V.add(scan.nextInt());
        } {
            V.add(scan.nextInt());
        } V.add(scan.nextInt()) V.add V scan.nextInt() scan.nextInt scan for (int i = 0; i < N; i++) {
            C.add(scan.nextInt());
            if (V.get(i) > C.get(i)) {
                result += V.get(i) - C.get(i);
            }
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            C.add(scan.nextInt());
            if (V.get(i) > C.get(i)) {
                result += V.get(i) - C.get(i);
            }
        } {
            C.add(scan.nextInt());
            if (V.get(i) > C.get(i)) {
                result += V.get(i) - C.get(i);
            }
        } C.add(scan.nextInt()) C.add C scan.nextInt() scan.nextInt scan if (V.get(i) > C.get(i)) {
                result += V.get(i) - C.get(i);
            } V.get(i) > C.get(i) V.get(i) V.get V i C.get(i) C.get C i {
                result += V.get(i) - C.get(i);
            } result += V.get(i) - C.get(i) result V.get(i) - C.get(i) V.get(i) V.get V i C.get(i) C.get C 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) {
        int N;
        int result = 0;
        Scanner scan = new Scanner(System.in);

        N = scan.nextInt(); 
        List<Integer> V = new ArrayList<>(N);
        List<Integer> C = new ArrayList<>(N);

        for (int i = 0; i < N; i++) {
            V.add(scan.nextInt());
        }
        for (int i = 0; i < N; i++) {
            C.add(scan.nextInt());
            if (V.get(i) > C.get(i)) {
                result += V.get(i) - C.get(i);
            }
        }
        System.out.println(result);

    }
} public class Main {
    public static void main(String[] args) {
        int N;
        int result = 0;
        Scanner scan = new Scanner(System.in);

        N = scan.nextInt(); 
        List<Integer> V = new ArrayList<>(N);
        List<Integer> C = new ArrayList<>(N);

        for (int i = 0; i < N; i++) {
            V.add(scan.nextInt());
        }
        for (int i = 0; i < N; i++) {
            C.add(scan.nextInt());
            if (V.get(i) > C.get(i)) {
                result += V.get(i) - C.get(i);
            }
        }
        System.out.println(result);

    }
} Main
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        int N;
        int result = 0;
        Scanner scan = new Scanner(System.in);

        N = scan.nextInt(); 
        List<Integer> V = new ArrayList<>(N);
        List<Integer> C = new ArrayList<>(N);

        for (int i = 0; i < N; i++) {
            V.add(scan.nextInt());
        }
        for (int i = 0; i < N; i++) {
            C.add(scan.nextInt());
            if (V.get(i) > C.get(i)) {
                result += V.get(i) - C.get(i);
            }
        }
        System.out.println(result);

    }
}