import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] v = new int[N];
        int[] c = new int[N];
        for (int i = 0; i < N; i++) {
            v[i] = sc.nextInt();
        }

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

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

        int V = 0;
        for (int i = 0; i < N; i++) {
            int C = sc.nextInt();
            if (v[i] > C) {
                V += v[i] - C;
            }
        }
        System.out.println(V);
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] v = new int[N];
        int[] c = new int[N];
        for (int i = 0; i < N; i++) {
            v[i] = sc.nextInt();
        }

        int V = 0;
        for (int i = 0; i < N; i++) {
            int C = sc.nextInt();
            if (v[i] > C) {
                V += v[i] - C;
            }
        }
        System.out.println(V);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int[] v = new int[N]; v new int[N] N int[] c = new int[N]; c 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 int V = 0; V 0 for (int i = 0; i < N; i++) {
            int C = sc.nextInt();
            if (v[i] > C) {
                V += v[i] - C;
            }
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            int C = sc.nextInt();
            if (v[i] > C) {
                V += v[i] - C;
            }
        } {
            int C = sc.nextInt();
            if (v[i] > C) {
                V += v[i] - C;
            }
        } int C = sc.nextInt(); C sc.nextInt() sc.nextInt sc if (v[i] > C) {
                V += v[i] - C;
            } v[i] > C v[i] v i C {
                V += v[i] - C;
            } V += v[i] - C V v[i] - C v[i] v i C System.out.println(V) System.out.println System.out System System.out V String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] v = new int[N];
        int[] c = new int[N];
        for (int i = 0; i < N; i++) {
            v[i] = sc.nextInt();
        }

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

        int V = 0;
        for (int i = 0; i < N; i++) {
            int C = sc.nextInt();
            if (v[i] > C) {
                V += v[i] - C;
            }
        }
        System.out.println(V);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] v = new int[N];
        int[] c = new int[N];
        for (int i = 0; i < N; i++) {
            v[i] = sc.nextInt();
        }

        int V = 0;
        for (int i = 0; i < N; i++) {
            int C = sc.nextInt();
            if (v[i] > C) {
                V += v[i] - C;
            }
        }
        System.out.println(V);
    }
}