import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.nextLine());
        String[] v = sc.nextLine().split(" ");
        String[] c = sc.nextLine().split(" ");

        int ret = 0;
        for (int i = 0; i < n; i++) {
            int tmp = Integer.parseInt(v[i]) - Integer.parseInt(c[i]);
            if (tmp > 0) {
                ret += tmp;
            }
        }

        System.out.println(ret);
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.nextLine());
        String[] v = sc.nextLine().split(" ");
        String[] c = sc.nextLine().split(" ");

        int ret = 0;
        for (int i = 0; i < n; i++) {
            int tmp = Integer.parseInt(v[i]) - Integer.parseInt(c[i]);
            if (tmp > 0) {
                ret += tmp;
            }
        }

        System.out.println(ret);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.nextLine());
        String[] v = sc.nextLine().split(" ");
        String[] c = sc.nextLine().split(" ");

        int ret = 0;
        for (int i = 0; i < n; i++) {
            int tmp = Integer.parseInt(v[i]) - Integer.parseInt(c[i]);
            if (tmp > 0) {
                ret += tmp;
            }
        }

        System.out.println(ret);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.nextLine());
        String[] v = sc.nextLine().split(" ");
        String[] c = sc.nextLine().split(" ");

        int ret = 0;
        for (int i = 0; i < n; i++) {
            int tmp = Integer.parseInt(v[i]) - Integer.parseInt(c[i]);
            if (tmp > 0) {
                ret += tmp;
            }
        }

        System.out.println(ret);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.nextLine()); n Integer.parseInt(sc.nextLine()) Integer.parseInt Integer sc.nextLine() sc.nextLine sc String[] v = sc.nextLine().split(" "); v sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " String[] c = sc.nextLine().split(" "); c sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " int ret = 0; ret 0 for (int i = 0; i < n; i++) {
            int tmp = Integer.parseInt(v[i]) - Integer.parseInt(c[i]);
            if (tmp > 0) {
                ret += tmp;
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            int tmp = Integer.parseInt(v[i]) - Integer.parseInt(c[i]);
            if (tmp > 0) {
                ret += tmp;
            }
        } {
            int tmp = Integer.parseInt(v[i]) - Integer.parseInt(c[i]);
            if (tmp > 0) {
                ret += tmp;
            }
        } int tmp = Integer.parseInt(v[i]) - Integer.parseInt(c[i]); tmp Integer.parseInt(v[i]) - Integer.parseInt(c[i]) Integer.parseInt(v[i]) Integer.parseInt Integer v[i] v i Integer.parseInt(c[i]) Integer.parseInt Integer c[i] c i if (tmp > 0) {
                ret += tmp;
            } tmp > 0 tmp 0 {
                ret += tmp;
            } ret += tmp ret tmp System.out.println(ret) System.out.println System.out System System.out ret String[] args args public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.nextLine());
        String[] v = sc.nextLine().split(" ");
        String[] c = sc.nextLine().split(" ");

        int ret = 0;
        for (int i = 0; i < n; i++) {
            int tmp = Integer.parseInt(v[i]) - Integer.parseInt(c[i]);
            if (tmp > 0) {
                ret += tmp;
            }
        }

        System.out.println(ret);
    }
} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.nextLine());
        String[] v = sc.nextLine().split(" ");
        String[] c = sc.nextLine().split(" ");

        int ret = 0;
        for (int i = 0; i < n; i++) {
            int tmp = Integer.parseInt(v[i]) - Integer.parseInt(c[i]);
            if (tmp > 0) {
                ret += tmp;
            }
        }

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

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.nextLine());
        String[] v = sc.nextLine().split(" ");
        String[] c = sc.nextLine().split(" ");

        int ret = 0;
        for (int i = 0; i < n; i++) {
            int tmp = Integer.parseInt(v[i]) - Integer.parseInt(c[i]);
            if (tmp > 0) {
                ret += tmp;
            }
        }

        System.out.println(ret);
    }
}