import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {

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

        int n = Integer.parseInt(s.next());
        List<Integer> v = new ArrayList<>();
        List<Integer> c = new ArrayList<>();

        for(int i = 0; i < n; i++)
            v.add(Integer.parseInt(s.next()));
        for(int i = 0; i < n; i++)
            c.add(Integer.parseInt(s.next()));

        int now = 0;
        for(int i = 0; i < n; i++){
            int vvalue = v.get(i);
            int cvalue = c.get(i);
            if(vvalue - cvalue > 0)
                now += vvalue - cvalue;
        }

        System.out.println(now);
    }

} import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {

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

        int n = Integer.parseInt(s.next());
        List<Integer> v = new ArrayList<>();
        List<Integer> c = new ArrayList<>();

        for(int i = 0; i < n; i++)
            v.add(Integer.parseInt(s.next()));
        for(int i = 0; i < n; i++)
            c.add(Integer.parseInt(s.next()));

        int now = 0;
        for(int i = 0; i < n; i++){
            int vvalue = v.get(i);
            int cvalue = c.get(i);
            if(vvalue - cvalue > 0)
                now += vvalue - cvalue;
        }

        System.out.println(now);
    }

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

        int n = Integer.parseInt(s.next());
        List<Integer> v = new ArrayList<>();
        List<Integer> c = new ArrayList<>();

        for(int i = 0; i < n; i++)
            v.add(Integer.parseInt(s.next()));
        for(int i = 0; i < n; i++)
            c.add(Integer.parseInt(s.next()));

        int now = 0;
        for(int i = 0; i < n; i++){
            int vvalue = v.get(i);
            int cvalue = c.get(i);
            if(vvalue - cvalue > 0)
                now += vvalue - cvalue;
        }

        System.out.println(now);
    } main {
        Scanner s = new Scanner(System.in);

        int n = Integer.parseInt(s.next());
        List<Integer> v = new ArrayList<>();
        List<Integer> c = new ArrayList<>();

        for(int i = 0; i < n; i++)
            v.add(Integer.parseInt(s.next()));
        for(int i = 0; i < n; i++)
            c.add(Integer.parseInt(s.next()));

        int now = 0;
        for(int i = 0; i < n; i++){
            int vvalue = v.get(i);
            int cvalue = c.get(i);
            if(vvalue - cvalue > 0)
                now += vvalue - cvalue;
        }

        System.out.println(now);
    } Scanner s = new Scanner(System.in); s new Scanner(System.in) int n = Integer.parseInt(s.next()); n Integer.parseInt(s.next()) Integer.parseInt Integer s.next() s.next s List<Integer> v = new ArrayList<>(); v new ArrayList<>() List<Integer> c = new ArrayList<>(); c new ArrayList<>() for(int i = 0; i < n; i++)
            v.add(Integer.parseInt(s.next())); int i = 0; int i = 0; i 0 i < n i n i++ i++ i v.add(Integer.parseInt(s.next())); v.add(Integer.parseInt(s.next())) v.add v Integer.parseInt(s.next()) Integer.parseInt Integer s.next() s.next s for(int i = 0; i < n; i++)
            c.add(Integer.parseInt(s.next())); int i = 0; int i = 0; i 0 i < n i n i++ i++ i c.add(Integer.parseInt(s.next())); c.add(Integer.parseInt(s.next())) c.add c Integer.parseInt(s.next()) Integer.parseInt Integer s.next() s.next s int now = 0; now 0 for(int i = 0; i < n; i++){
            int vvalue = v.get(i);
            int cvalue = c.get(i);
            if(vvalue - cvalue > 0)
                now += vvalue - cvalue;
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            int vvalue = v.get(i);
            int cvalue = c.get(i);
            if(vvalue - cvalue > 0)
                now += vvalue - cvalue;
        } {
            int vvalue = v.get(i);
            int cvalue = c.get(i);
            if(vvalue - cvalue > 0)
                now += vvalue - cvalue;
        } int vvalue = v.get(i); vvalue v.get(i) v.get v i int cvalue = c.get(i); cvalue c.get(i) c.get c i if(vvalue - cvalue > 0)
                now += vvalue - cvalue; vvalue - cvalue > 0 vvalue - cvalue vvalue cvalue 0 now += vvalue - cvalue now vvalue - cvalue vvalue cvalue System.out.println(now) System.out.println System.out System System.out now String[] args args public class Main {

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

        int n = Integer.parseInt(s.next());
        List<Integer> v = new ArrayList<>();
        List<Integer> c = new ArrayList<>();

        for(int i = 0; i < n; i++)
            v.add(Integer.parseInt(s.next()));
        for(int i = 0; i < n; i++)
            c.add(Integer.parseInt(s.next()));

        int now = 0;
        for(int i = 0; i < n; i++){
            int vvalue = v.get(i);
            int cvalue = c.get(i);
            if(vvalue - cvalue > 0)
                now += vvalue - cvalue;
        }

        System.out.println(now);
    }

} public class Main {

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

        int n = Integer.parseInt(s.next());
        List<Integer> v = new ArrayList<>();
        List<Integer> c = new ArrayList<>();

        for(int i = 0; i < n; i++)
            v.add(Integer.parseInt(s.next()));
        for(int i = 0; i < n; i++)
            c.add(Integer.parseInt(s.next()));

        int now = 0;
        for(int i = 0; i < n; i++){
            int vvalue = v.get(i);
            int cvalue = c.get(i);
            if(vvalue - cvalue > 0)
                now += vvalue - cvalue;
        }

        System.out.println(now);
    }

} Main
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {

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

        int n = Integer.parseInt(s.next());
        List<Integer> v = new ArrayList<>();
        List<Integer> c = new ArrayList<>();

        for(int i = 0; i < n; i++)
            v.add(Integer.parseInt(s.next()));
        for(int i = 0; i < n; i++)
            c.add(Integer.parseInt(s.next()));

        int now = 0;
        for(int i = 0; i < n; i++){
            int vvalue = v.get(i);
            int cvalue = c.get(i);
            if(vvalue - cvalue > 0)
                now += vvalue - cvalue;
        }

        System.out.println(now);
    }

}
