import java.util.Arrays;
import java.util.List;
import java.util.Scanner;
import java.util.stream.Collectors;

public class Main {

    // input
    static int n;
    static int[] c;
    static int[] v;

    /**
     * input
     */
    static void input(){
        Scanner sc = new Scanner(System.in);
        n = sc.nextInt();
        v = new int[n];
        c = new int[n];
        for (int i=0;i<n;i++){
            v[i] = sc.nextInt();
        }
        for (int i=0;i<n;i++){
            c[i] = sc.nextInt();
        }
        sc.close();
    }
 
    /**
     * solver
     */
    static void solve(){
        int ans = 0;
        for(int i=0;i<n;i++){
            int s = v[i] - c[i];
            if (s > 0) {
                ans += s;
            }
        }
        System.out.println(ans);
    }

    public static void main(String args[]) {

        input();

        solve();
    }
} import java.util.Arrays; Arrays java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util import java.util.stream.Collectors; Collectors java.util.stream public class Main {

    // input
    static int n;
    static int[] c;
    static int[] v;

    /**
     * input
     */
    static void input(){
        Scanner sc = new Scanner(System.in);
        n = sc.nextInt();
        v = new int[n];
        c = new int[n];
        for (int i=0;i<n;i++){
            v[i] = sc.nextInt();
        }
        for (int i=0;i<n;i++){
            c[i] = sc.nextInt();
        }
        sc.close();
    }
 
    /**
     * solver
     */
    static void solve(){
        int ans = 0;
        for(int i=0;i<n;i++){
            int s = v[i] - c[i];
            if (s > 0) {
                ans += s;
            }
        }
        System.out.println(ans);
    }

    public static void main(String args[]) {

        input();

        solve();
    }
} Main // input
    static int n; n static int[] c; c static int[] v; v /**
     * input
     */
    static void input(){
        Scanner sc = new Scanner(System.in);
        n = sc.nextInt();
        v = new int[n];
        c = new int[n];
        for (int i=0;i<n;i++){
            v[i] = sc.nextInt();
        }
        for (int i=0;i<n;i++){
            c[i] = sc.nextInt();
        }
        sc.close();
    } input {
        Scanner sc = new Scanner(System.in);
        n = sc.nextInt();
        v = new int[n];
        c = new int[n];
        for (int i=0;i<n;i++){
            v[i] = sc.nextInt();
        }
        for (int i=0;i<n;i++){
            c[i] = sc.nextInt();
        }
        sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) n = sc.nextInt() n sc.nextInt() sc.nextInt sc v = new int[n] v new int[n] n 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 for (int i=0;i<n;i++){
            c[i] = sc.nextInt();
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            c[i] = sc.nextInt();
        } {
            c[i] = sc.nextInt();
        } c[i] = sc.nextInt() c[i] c i sc.nextInt() sc.nextInt sc sc.close() sc.close sc /**
     * solver
     */
    static void solve(){
        int ans = 0;
        for(int i=0;i<n;i++){
            int s = v[i] - c[i];
            if (s > 0) {
                ans += s;
            }
        }
        System.out.println(ans);
    } solve {
        int ans = 0;
        for(int i=0;i<n;i++){
            int s = v[i] - c[i];
            if (s > 0) {
                ans += s;
            }
        }
        System.out.println(ans);
    } int ans = 0; ans 0 for(int i=0;i<n;i++){
            int s = v[i] - c[i];
            if (s > 0) {
                ans += s;
            }
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            int s = v[i] - c[i];
            if (s > 0) {
                ans += s;
            }
        } {
            int s = v[i] - c[i];
            if (s > 0) {
                ans += s;
            }
        } int s = v[i] - c[i]; s v[i] - c[i] v[i] v i c[i] c i if (s > 0) {
                ans += s;
            } s > 0 s 0 {
                ans += s;
            } ans += s ans s System.out.println(ans) System.out.println System.out System System.out ans public static void main(String args[]) {

        input();

        solve();
    } main {

        input();

        solve();
    } input() input solve() solve String args[] args public class Main {

    // input
    static int n;
    static int[] c;
    static int[] v;

    /**
     * input
     */
    static void input(){
        Scanner sc = new Scanner(System.in);
        n = sc.nextInt();
        v = new int[n];
        c = new int[n];
        for (int i=0;i<n;i++){
            v[i] = sc.nextInt();
        }
        for (int i=0;i<n;i++){
            c[i] = sc.nextInt();
        }
        sc.close();
    }
 
    /**
     * solver
     */
    static void solve(){
        int ans = 0;
        for(int i=0;i<n;i++){
            int s = v[i] - c[i];
            if (s > 0) {
                ans += s;
            }
        }
        System.out.println(ans);
    }

    public static void main(String args[]) {

        input();

        solve();
    }
} public class Main {

    // input
    static int n;
    static int[] c;
    static int[] v;

    /**
     * input
     */
    static void input(){
        Scanner sc = new Scanner(System.in);
        n = sc.nextInt();
        v = new int[n];
        c = new int[n];
        for (int i=0;i<n;i++){
            v[i] = sc.nextInt();
        }
        for (int i=0;i<n;i++){
            c[i] = sc.nextInt();
        }
        sc.close();
    }
 
    /**
     * solver
     */
    static void solve(){
        int ans = 0;
        for(int i=0;i<n;i++){
            int s = v[i] - c[i];
            if (s > 0) {
                ans += s;
            }
        }
        System.out.println(ans);
    }

    public static void main(String args[]) {

        input();

        solve();
    }
} Main
import java.util.Arrays;
import java.util.List;
import java.util.Scanner;
import java.util.stream.Collectors;

public class Main {

    // input
    static int n;
    static int[] c;
    static int[] v;

    /**
     * input
     */
    static void input(){
        Scanner sc = new Scanner(System.in);
        n = sc.nextInt();
        v = new int[n];
        c = new int[n];
        for (int i=0;i<n;i++){
            v[i] = sc.nextInt();
        }
        for (int i=0;i<n;i++){
            c[i] = sc.nextInt();
        }
        sc.close();
    }
 
    /**
     * solver
     */
    static void solve(){
        int ans = 0;
        for(int i=0;i<n;i++){
            int s = v[i] - c[i];
            if (s > 0) {
                ans += s;
            }
        }
        System.out.println(ans);
    }

    public static void main(String args[]) {

        input();

        solve();
    }
}
