import java.util.*;

public class Main{
    public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();
        List<Integer> Vlist = new ArrayList<>();
        List<Integer> Clist = new ArrayList<>();

        for(int i=0; i<N; i++){
            Vlist.add(scanner.nextInt());
        }
        for(int i=0; i<N; i++){
            Clist.add(scanner.nextInt());
        }

        int maxVal = 0;
        for(int i=0; i<N; i++){
            if (Vlist.get(i) - Clist.get(i) >0){
                maxVal = maxVal + Vlist.get(i) - Clist.get(i);
            }
        }

        System.out.println(maxVal);
    }
} import java.util.*; util.* java public class Main{
    public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();
        List<Integer> Vlist = new ArrayList<>();
        List<Integer> Clist = new ArrayList<>();

        for(int i=0; i<N; i++){
            Vlist.add(scanner.nextInt());
        }
        for(int i=0; i<N; i++){
            Clist.add(scanner.nextInt());
        }

        int maxVal = 0;
        for(int i=0; i<N; i++){
            if (Vlist.get(i) - Clist.get(i) >0){
                maxVal = maxVal + Vlist.get(i) - Clist.get(i);
            }
        }

        System.out.println(maxVal);
    }
} Main public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();
        List<Integer> Vlist = new ArrayList<>();
        List<Integer> Clist = new ArrayList<>();

        for(int i=0; i<N; i++){
            Vlist.add(scanner.nextInt());
        }
        for(int i=0; i<N; i++){
            Clist.add(scanner.nextInt());
        }

        int maxVal = 0;
        for(int i=0; i<N; i++){
            if (Vlist.get(i) - Clist.get(i) >0){
                maxVal = maxVal + Vlist.get(i) - Clist.get(i);
            }
        }

        System.out.println(maxVal);
    } main {
        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();
        List<Integer> Vlist = new ArrayList<>();
        List<Integer> Clist = new ArrayList<>();

        for(int i=0; i<N; i++){
            Vlist.add(scanner.nextInt());
        }
        for(int i=0; i<N; i++){
            Clist.add(scanner.nextInt());
        }

        int maxVal = 0;
        for(int i=0; i<N; i++){
            if (Vlist.get(i) - Clist.get(i) >0){
                maxVal = maxVal + Vlist.get(i) - Clist.get(i);
            }
        }

        System.out.println(maxVal);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int N = scanner.nextInt(); N scanner.nextInt() scanner.nextInt scanner List<Integer> Vlist = new ArrayList<>(); Vlist new ArrayList<>() List<Integer> Clist = new ArrayList<>(); Clist new ArrayList<>() for(int i=0; i<N; i++){
            Vlist.add(scanner.nextInt());
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            Vlist.add(scanner.nextInt());
        } {
            Vlist.add(scanner.nextInt());
        } Vlist.add(scanner.nextInt()) Vlist.add Vlist scanner.nextInt() scanner.nextInt scanner for(int i=0; i<N; i++){
            Clist.add(scanner.nextInt());
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            Clist.add(scanner.nextInt());
        } {
            Clist.add(scanner.nextInt());
        } Clist.add(scanner.nextInt()) Clist.add Clist scanner.nextInt() scanner.nextInt scanner int maxVal = 0; maxVal 0 for(int i=0; i<N; i++){
            if (Vlist.get(i) - Clist.get(i) >0){
                maxVal = maxVal + Vlist.get(i) - Clist.get(i);
            }
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            if (Vlist.get(i) - Clist.get(i) >0){
                maxVal = maxVal + Vlist.get(i) - Clist.get(i);
            }
        } {
            if (Vlist.get(i) - Clist.get(i) >0){
                maxVal = maxVal + Vlist.get(i) - Clist.get(i);
            }
        } if (Vlist.get(i) - Clist.get(i) >0){
                maxVal = maxVal + Vlist.get(i) - Clist.get(i);
            } Vlist.get(i) - Clist.get(i) >0 Vlist.get(i) - Clist.get(i) Vlist.get(i) Vlist.get Vlist i Clist.get(i) Clist.get Clist i 0 {
                maxVal = maxVal + Vlist.get(i) - Clist.get(i);
            } maxVal = maxVal + Vlist.get(i) - Clist.get(i) maxVal maxVal + Vlist.get(i) - Clist.get(i) maxVal + Vlist.get(i) maxVal Vlist.get(i) Vlist.get Vlist i Clist.get(i) Clist.get Clist i System.out.println(maxVal) System.out.println System.out System System.out maxVal String args[] args public class Main{
    public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();
        List<Integer> Vlist = new ArrayList<>();
        List<Integer> Clist = new ArrayList<>();

        for(int i=0; i<N; i++){
            Vlist.add(scanner.nextInt());
        }
        for(int i=0; i<N; i++){
            Clist.add(scanner.nextInt());
        }

        int maxVal = 0;
        for(int i=0; i<N; i++){
            if (Vlist.get(i) - Clist.get(i) >0){
                maxVal = maxVal + Vlist.get(i) - Clist.get(i);
            }
        }

        System.out.println(maxVal);
    }
} public class Main{
    public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();
        List<Integer> Vlist = new ArrayList<>();
        List<Integer> Clist = new ArrayList<>();

        for(int i=0; i<N; i++){
            Vlist.add(scanner.nextInt());
        }
        for(int i=0; i<N; i++){
            Clist.add(scanner.nextInt());
        }

        int maxVal = 0;
        for(int i=0; i<N; i++){
            if (Vlist.get(i) - Clist.get(i) >0){
                maxVal = maxVal + Vlist.get(i) - Clist.get(i);
            }
        }

        System.out.println(maxVal);
    }
} Main
import java.util.*;

public class Main{
    public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();
        List<Integer> Vlist = new ArrayList<>();
        List<Integer> Clist = new ArrayList<>();

        for(int i=0; i<N; i++){
            Vlist.add(scanner.nextInt());
        }
        for(int i=0; i<N; i++){
            Clist.add(scanner.nextInt());
        }

        int maxVal = 0;
        for(int i=0; i<N; i++){
            if (Vlist.get(i) - Clist.get(i) >0){
                maxVal = maxVal + Vlist.get(i) - Clist.get(i);
            }
        }

        System.out.println(maxVal);
    }
}