import java.util.*;

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

        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int maxim = 0;

        List<Integer> num1 = new ArrayList<>();
        List<Integer> num2 = new ArrayList<>();

        for (int i = 0; i < n; i++){
            num1.add(sc.nextInt());
        }
        for (int j = 0; j < n; j++){
            num2.add(sc.nextInt());
        }

        for (int k = 0; k < n; k++){
            if ((num1.get(k) - num2.get(k)) >= 1){
                maxim += (num1.get(k) - num2.get(k));
            }
        }
        System.out.println(maxim);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args){

        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int maxim = 0;

        List<Integer> num1 = new ArrayList<>();
        List<Integer> num2 = new ArrayList<>();

        for (int i = 0; i < n; i++){
            num1.add(sc.nextInt());
        }
        for (int j = 0; j < n; j++){
            num2.add(sc.nextInt());
        }

        for (int k = 0; k < n; k++){
            if ((num1.get(k) - num2.get(k)) >= 1){
                maxim += (num1.get(k) - num2.get(k));
            }
        }
        System.out.println(maxim);
    }
} Main public static void main(String[] args){

        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int maxim = 0;

        List<Integer> num1 = new ArrayList<>();
        List<Integer> num2 = new ArrayList<>();

        for (int i = 0; i < n; i++){
            num1.add(sc.nextInt());
        }
        for (int j = 0; j < n; j++){
            num2.add(sc.nextInt());
        }

        for (int k = 0; k < n; k++){
            if ((num1.get(k) - num2.get(k)) >= 1){
                maxim += (num1.get(k) - num2.get(k));
            }
        }
        System.out.println(maxim);
    } main {

        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int maxim = 0;

        List<Integer> num1 = new ArrayList<>();
        List<Integer> num2 = new ArrayList<>();

        for (int i = 0; i < n; i++){
            num1.add(sc.nextInt());
        }
        for (int j = 0; j < n; j++){
            num2.add(sc.nextInt());
        }

        for (int k = 0; k < n; k++){
            if ((num1.get(k) - num2.get(k)) >= 1){
                maxim += (num1.get(k) - num2.get(k));
            }
        }
        System.out.println(maxim);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int maxim = 0; maxim 0 List<Integer> num1 = new ArrayList<>(); num1 new ArrayList<>() List<Integer> num2 = new ArrayList<>(); num2 new ArrayList<>() for (int i = 0; i < n; i++){
            num1.add(sc.nextInt());
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            num1.add(sc.nextInt());
        } {
            num1.add(sc.nextInt());
        } num1.add(sc.nextInt()) num1.add num1 sc.nextInt() sc.nextInt sc for (int j = 0; j < n; j++){
            num2.add(sc.nextInt());
        } int j = 0; int j = 0; j 0 j < n j n j++ j++ j {
            num2.add(sc.nextInt());
        } {
            num2.add(sc.nextInt());
        } num2.add(sc.nextInt()) num2.add num2 sc.nextInt() sc.nextInt sc for (int k = 0; k < n; k++){
            if ((num1.get(k) - num2.get(k)) >= 1){
                maxim += (num1.get(k) - num2.get(k));
            }
        } int k = 0; int k = 0; k 0 k < n k n k++ k++ k {
            if ((num1.get(k) - num2.get(k)) >= 1){
                maxim += (num1.get(k) - num2.get(k));
            }
        } {
            if ((num1.get(k) - num2.get(k)) >= 1){
                maxim += (num1.get(k) - num2.get(k));
            }
        } if ((num1.get(k) - num2.get(k)) >= 1){
                maxim += (num1.get(k) - num2.get(k));
            } (num1.get(k) - num2.get(k)) >= 1 (num1.get(k) - num2.get(k)) num1.get(k) num1.get num1 k num2.get(k) num2.get num2 k 1 {
                maxim += (num1.get(k) - num2.get(k));
            } maxim += (num1.get(k) - num2.get(k)) maxim (num1.get(k) - num2.get(k)) num1.get(k) num1.get num1 k num2.get(k) num2.get num2 k System.out.println(maxim) System.out.println System.out System System.out maxim String[] args args public class Main {
    public static void main(String[] args){

        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int maxim = 0;

        List<Integer> num1 = new ArrayList<>();
        List<Integer> num2 = new ArrayList<>();

        for (int i = 0; i < n; i++){
            num1.add(sc.nextInt());
        }
        for (int j = 0; j < n; j++){
            num2.add(sc.nextInt());
        }

        for (int k = 0; k < n; k++){
            if ((num1.get(k) - num2.get(k)) >= 1){
                maxim += (num1.get(k) - num2.get(k));
            }
        }
        System.out.println(maxim);
    }
} public class Main {
    public static void main(String[] args){

        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int maxim = 0;

        List<Integer> num1 = new ArrayList<>();
        List<Integer> num2 = new ArrayList<>();

        for (int i = 0; i < n; i++){
            num1.add(sc.nextInt());
        }
        for (int j = 0; j < n; j++){
            num2.add(sc.nextInt());
        }

        for (int k = 0; k < n; k++){
            if ((num1.get(k) - num2.get(k)) >= 1){
                maxim += (num1.get(k) - num2.get(k));
            }
        }
        System.out.println(maxim);
    }
} Main
import java.util.*;

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

        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int maxim = 0;

        List<Integer> num1 = new ArrayList<>();
        List<Integer> num2 = new ArrayList<>();

        for (int i = 0; i < n; i++){
            num1.add(sc.nextInt());
        }
        for (int j = 0; j < n; j++){
            num2.add(sc.nextInt());
        }

        for (int k = 0; k < n; k++){
            if ((num1.get(k) - num2.get(k)) >= 1){
                maxim += (num1.get(k) - num2.get(k));
            }
        }
        System.out.println(maxim);
    }
}
