import java.util.*;

public class Main {
	public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        ArrayList<Integer> V = new ArrayList<>();
        ArrayList<Integer> C = new ArrayList<>();
        int diff = 0;


        for(int i=0; i<n; i++){
            V.add(sc.nextInt());
        }
        for(int i=0; i<n; i++){
            C.add(sc.nextInt());
        }
        for(int i=0; i<n; i++){
            
            if((V.get(i)-C.get(i))>0){
                diff += V.get(i)-C.get(i);
            }            
        }

        System.out.println(diff);

        sc.close();

	}	
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        ArrayList<Integer> V = new ArrayList<>();
        ArrayList<Integer> C = new ArrayList<>();
        int diff = 0;


        for(int i=0; i<n; i++){
            V.add(sc.nextInt());
        }
        for(int i=0; i<n; i++){
            C.add(sc.nextInt());
        }
        for(int i=0; i<n; i++){
            
            if((V.get(i)-C.get(i))>0){
                diff += V.get(i)-C.get(i);
            }            
        }

        System.out.println(diff);

        sc.close();

	}	
} Main public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        ArrayList<Integer> V = new ArrayList<>();
        ArrayList<Integer> C = new ArrayList<>();
        int diff = 0;


        for(int i=0; i<n; i++){
            V.add(sc.nextInt());
        }
        for(int i=0; i<n; i++){
            C.add(sc.nextInt());
        }
        for(int i=0; i<n; i++){
            
            if((V.get(i)-C.get(i))>0){
                diff += V.get(i)-C.get(i);
            }            
        }

        System.out.println(diff);

        sc.close();

	} main {

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        ArrayList<Integer> V = new ArrayList<>();
        ArrayList<Integer> C = new ArrayList<>();
        int diff = 0;


        for(int i=0; i<n; i++){
            V.add(sc.nextInt());
        }
        for(int i=0; i<n; i++){
            C.add(sc.nextInt());
        }
        for(int i=0; i<n; i++){
            
            if((V.get(i)-C.get(i))>0){
                diff += V.get(i)-C.get(i);
            }            
        }

        System.out.println(diff);

        sc.close();

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc ArrayList<Integer> V = new ArrayList<>(); V new ArrayList<>() ArrayList<Integer> C = new ArrayList<>(); C new ArrayList<>() int diff = 0; diff 0 for(int i=0; i<n; i++){
            V.add(sc.nextInt());
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            V.add(sc.nextInt());
        } {
            V.add(sc.nextInt());
        } V.add(sc.nextInt()) V.add V sc.nextInt() sc.nextInt sc for(int i=0; i<n; i++){
            C.add(sc.nextInt());
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            C.add(sc.nextInt());
        } {
            C.add(sc.nextInt());
        } C.add(sc.nextInt()) C.add C sc.nextInt() sc.nextInt sc for(int i=0; i<n; i++){
            
            if((V.get(i)-C.get(i))>0){
                diff += V.get(i)-C.get(i);
            }            
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            
            if((V.get(i)-C.get(i))>0){
                diff += V.get(i)-C.get(i);
            }            
        } {
            
            if((V.get(i)-C.get(i))>0){
                diff += V.get(i)-C.get(i);
            }            
        } if((V.get(i)-C.get(i))>0){
                diff += V.get(i)-C.get(i);
            } (V.get(i)-C.get(i))>0 (V.get(i)-C.get(i)) V.get(i) V.get V i C.get(i) C.get C i 0 {
                diff += V.get(i)-C.get(i);
            } diff += V.get(i)-C.get(i) diff V.get(i)-C.get(i) V.get(i) V.get V i C.get(i) C.get C i System.out.println(diff) System.out.println System.out System System.out diff sc.close() sc.close sc String[] args args public class Main {
	public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        ArrayList<Integer> V = new ArrayList<>();
        ArrayList<Integer> C = new ArrayList<>();
        int diff = 0;


        for(int i=0; i<n; i++){
            V.add(sc.nextInt());
        }
        for(int i=0; i<n; i++){
            C.add(sc.nextInt());
        }
        for(int i=0; i<n; i++){
            
            if((V.get(i)-C.get(i))>0){
                diff += V.get(i)-C.get(i);
            }            
        }

        System.out.println(diff);

        sc.close();

	}	
} public class Main {
	public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        ArrayList<Integer> V = new ArrayList<>();
        ArrayList<Integer> C = new ArrayList<>();
        int diff = 0;


        for(int i=0; i<n; i++){
            V.add(sc.nextInt());
        }
        for(int i=0; i<n; i++){
            C.add(sc.nextInt());
        }
        for(int i=0; i<n; i++){
            
            if((V.get(i)-C.get(i))>0){
                diff += V.get(i)-C.get(i);
            }            
        }

        System.out.println(diff);

        sc.close();

	}	
} Main
import java.util.*;

public class Main {
	public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        ArrayList<Integer> V = new ArrayList<>();
        ArrayList<Integer> C = new ArrayList<>();
        int diff = 0;


        for(int i=0; i<n; i++){
            V.add(sc.nextInt());
        }
        for(int i=0; i<n; i++){
            C.add(sc.nextInt());
        }
        for(int i=0; i<n; i++){
            
            if((V.get(i)-C.get(i))>0){
                diff += V.get(i)-C.get(i);
            }            
        }

        System.out.println(diff);

        sc.close();

	}	
}