import java.util.Scanner;

public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();

        int[] values = new int[N];
        int[] costs = new int[N];

        for (int i = 0; i < N; i++) {
            values[i] = sc.nextInt();
        }
        for (int i = 0; i < N; i++) {
            costs[i] = sc.nextInt();
        }

        int result = 0;
        for (int i = 0; i < N; i++) {
            if (values[i] > costs[i]) {
                result += (values[i] - costs[i]);
            }
        }

        System.out.println(result);
    }
} 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();

        int[] values = new int[N];
        int[] costs = new int[N];

        for (int i = 0; i < N; i++) {
            values[i] = sc.nextInt();
        }
        for (int i = 0; i < N; i++) {
            costs[i] = sc.nextInt();
        }

        int result = 0;
        for (int i = 0; i < N; i++) {
            if (values[i] > costs[i]) {
                result += (values[i] - costs[i]);
            }
        }

        System.out.println(result);
    }
} Main public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();

        int[] values = new int[N];
        int[] costs = new int[N];

        for (int i = 0; i < N; i++) {
            values[i] = sc.nextInt();
        }
        for (int i = 0; i < N; i++) {
            costs[i] = sc.nextInt();
        }

        int result = 0;
        for (int i = 0; i < N; i++) {
            if (values[i] > costs[i]) {
                result += (values[i] - costs[i]);
            }
        }

        System.out.println(result);
    } main {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();

        int[] values = new int[N];
        int[] costs = new int[N];

        for (int i = 0; i < N; i++) {
            values[i] = sc.nextInt();
        }
        for (int i = 0; i < N; i++) {
            costs[i] = sc.nextInt();
        }

        int result = 0;
        for (int i = 0; i < N; i++) {
            if (values[i] > costs[i]) {
                result += (values[i] - costs[i]);
            }
        }

        System.out.println(result);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int[] values = new int[N]; values new int[N] N int[] costs = new int[N]; costs new int[N] N for (int i = 0; i < N; i++) {
            values[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            values[i] = sc.nextInt();
        } {
            values[i] = sc.nextInt();
        } values[i] = sc.nextInt() values[i] values i sc.nextInt() sc.nextInt sc for (int i = 0; i < N; i++) {
            costs[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            costs[i] = sc.nextInt();
        } {
            costs[i] = sc.nextInt();
        } costs[i] = sc.nextInt() costs[i] costs i sc.nextInt() sc.nextInt sc int result = 0; result 0 for (int i = 0; i < N; i++) {
            if (values[i] > costs[i]) {
                result += (values[i] - costs[i]);
            }
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            if (values[i] > costs[i]) {
                result += (values[i] - costs[i]);
            }
        } {
            if (values[i] > costs[i]) {
                result += (values[i] - costs[i]);
            }
        } if (values[i] > costs[i]) {
                result += (values[i] - costs[i]);
            } values[i] > costs[i] values[i] values i costs[i] costs i {
                result += (values[i] - costs[i]);
            } result += (values[i] - costs[i]) result (values[i] - costs[i]) values[i] values i costs[i] costs 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[]) {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();

        int[] values = new int[N];
        int[] costs = new int[N];

        for (int i = 0; i < N; i++) {
            values[i] = sc.nextInt();
        }
        for (int i = 0; i < N; i++) {
            costs[i] = sc.nextInt();
        }

        int result = 0;
        for (int i = 0; i < N; i++) {
            if (values[i] > costs[i]) {
                result += (values[i] - costs[i]);
            }
        }

        System.out.println(result);
    }
} public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();

        int[] values = new int[N];
        int[] costs = new int[N];

        for (int i = 0; i < N; i++) {
            values[i] = sc.nextInt();
        }
        for (int i = 0; i < N; i++) {
            costs[i] = sc.nextInt();
        }

        int result = 0;
        for (int i = 0; i < N; i++) {
            if (values[i] > costs[i]) {
                result += (values[i] - costs[i]);
            }
        }

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

public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();

        int[] values = new int[N];
        int[] costs = new int[N];

        for (int i = 0; i < N; i++) {
            values[i] = sc.nextInt();
        }
        for (int i = 0; i < N; i++) {
            costs[i] = sc.nextInt();
        }

        int result = 0;
        for (int i = 0; i < N; i++) {
            if (values[i] > costs[i]) {
                result += (values[i] - costs[i]);
            }
        }

        System.out.println(result);
    }
}
