import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int[] c = new int[n];
        int[] v = new int[n];
        for(int i=0;i<n;i++){
            v[i] = Integer.parseInt(sc.next());
        }
        for(int i=0;i<n;i++){
            c[i] = Integer.parseInt(sc.next());
        }
        sc.close();
        int val = 0;
        for(int i=0;i<n;i++){
            if(v[i]-c[i]>0){
                val+=v[i]-c[i];
            }
        }
        System.out.println(val);
    }

} 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.next());
        int[] c = new int[n];
        int[] v = new int[n];
        for(int i=0;i<n;i++){
            v[i] = Integer.parseInt(sc.next());
        }
        for(int i=0;i<n;i++){
            c[i] = Integer.parseInt(sc.next());
        }
        sc.close();
        int val = 0;
        for(int i=0;i<n;i++){
            if(v[i]-c[i]>0){
                val+=v[i]-c[i];
            }
        }
        System.out.println(val);
    }

} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int[] c = new int[n];
        int[] v = new int[n];
        for(int i=0;i<n;i++){
            v[i] = Integer.parseInt(sc.next());
        }
        for(int i=0;i<n;i++){
            c[i] = Integer.parseInt(sc.next());
        }
        sc.close();
        int val = 0;
        for(int i=0;i<n;i++){
            if(v[i]-c[i]>0){
                val+=v[i]-c[i];
            }
        }
        System.out.println(val);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int[] c = new int[n];
        int[] v = new int[n];
        for(int i=0;i<n;i++){
            v[i] = Integer.parseInt(sc.next());
        }
        for(int i=0;i<n;i++){
            c[i] = Integer.parseInt(sc.next());
        }
        sc.close();
        int val = 0;
        for(int i=0;i<n;i++){
            if(v[i]-c[i]>0){
                val+=v[i]-c[i];
            }
        }
        System.out.println(val);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.next()); n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int[] c = new int[n]; c new int[n] n int[] v = new int[n]; v new int[n] n for(int i=0;i<n;i++){
            v[i] = Integer.parseInt(sc.next());
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            v[i] = Integer.parseInt(sc.next());
        } {
            v[i] = Integer.parseInt(sc.next());
        } v[i] = Integer.parseInt(sc.next()) v[i] v i Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc for(int i=0;i<n;i++){
            c[i] = Integer.parseInt(sc.next());
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            c[i] = Integer.parseInt(sc.next());
        } {
            c[i] = Integer.parseInt(sc.next());
        } c[i] = Integer.parseInt(sc.next()) c[i] c i Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc sc.close() sc.close sc int val = 0; val 0 for(int i=0;i<n;i++){
            if(v[i]-c[i]>0){
                val+=v[i]-c[i];
            }
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            if(v[i]-c[i]>0){
                val+=v[i]-c[i];
            }
        } {
            if(v[i]-c[i]>0){
                val+=v[i]-c[i];
            }
        } if(v[i]-c[i]>0){
                val+=v[i]-c[i];
            } v[i]-c[i]>0 v[i]-c[i] v[i] v i c[i] c i 0 {
                val+=v[i]-c[i];
            } val+=v[i]-c[i] val v[i]-c[i] v[i] v i c[i] c i System.out.println(val) System.out.println System.out System System.out val String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int[] c = new int[n];
        int[] v = new int[n];
        for(int i=0;i<n;i++){
            v[i] = Integer.parseInt(sc.next());
        }
        for(int i=0;i<n;i++){
            c[i] = Integer.parseInt(sc.next());
        }
        sc.close();
        int val = 0;
        for(int i=0;i<n;i++){
            if(v[i]-c[i]>0){
                val+=v[i]-c[i];
            }
        }
        System.out.println(val);
    }

} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int[] c = new int[n];
        int[] v = new int[n];
        for(int i=0;i<n;i++){
            v[i] = Integer.parseInt(sc.next());
        }
        for(int i=0;i<n;i++){
            c[i] = Integer.parseInt(sc.next());
        }
        sc.close();
        int val = 0;
        for(int i=0;i<n;i++){
            if(v[i]-c[i]>0){
                val+=v[i]-c[i];
            }
        }
        System.out.println(val);
    }

} 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.next());
        int[] c = new int[n];
        int[] v = new int[n];
        for(int i=0;i<n;i++){
            v[i] = Integer.parseInt(sc.next());
        }
        for(int i=0;i<n;i++){
            c[i] = Integer.parseInt(sc.next());
        }
        sc.close();
        int val = 0;
        for(int i=0;i<n;i++){
            if(v[i]-c[i]>0){
                val+=v[i]-c[i];
            }
        }
        System.out.println(val);
    }

}