import java.util.*;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<Integer> valueList = new ArrayList<>();
        for (int i=0; i<n; i++){
            valueList.add(sc.nextInt());
        }
        List<Integer> costList = new ArrayList<>();
        for (int i=0; i<n; i++){
            costList.add(sc.nextInt());
        }

        int totalBenefit = 0;

        for (int i=0; i<n; i++){
            int benefit = valueList.get(i) - costList.get(i);
            if (benefit > 0){
                totalBenefit += benefit;
            }
        }

        System.out.println(totalBenefit);
    }
} import java.util.*; util.* java public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<Integer> valueList = new ArrayList<>();
        for (int i=0; i<n; i++){
            valueList.add(sc.nextInt());
        }
        List<Integer> costList = new ArrayList<>();
        for (int i=0; i<n; i++){
            costList.add(sc.nextInt());
        }

        int totalBenefit = 0;

        for (int i=0; i<n; i++){
            int benefit = valueList.get(i) - costList.get(i);
            if (benefit > 0){
                totalBenefit += benefit;
            }
        }

        System.out.println(totalBenefit);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<Integer> valueList = new ArrayList<>();
        for (int i=0; i<n; i++){
            valueList.add(sc.nextInt());
        }
        List<Integer> costList = new ArrayList<>();
        for (int i=0; i<n; i++){
            costList.add(sc.nextInt());
        }

        int totalBenefit = 0;

        for (int i=0; i<n; i++){
            int benefit = valueList.get(i) - costList.get(i);
            if (benefit > 0){
                totalBenefit += benefit;
            }
        }

        System.out.println(totalBenefit);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<Integer> valueList = new ArrayList<>();
        for (int i=0; i<n; i++){
            valueList.add(sc.nextInt());
        }
        List<Integer> costList = new ArrayList<>();
        for (int i=0; i<n; i++){
            costList.add(sc.nextInt());
        }

        int totalBenefit = 0;

        for (int i=0; i<n; i++){
            int benefit = valueList.get(i) - costList.get(i);
            if (benefit > 0){
                totalBenefit += benefit;
            }
        }

        System.out.println(totalBenefit);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc List<Integer> valueList = new ArrayList<>(); valueList new ArrayList<>() for (int i=0; i<n; i++){
            valueList.add(sc.nextInt());
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            valueList.add(sc.nextInt());
        } {
            valueList.add(sc.nextInt());
        } valueList.add(sc.nextInt()) valueList.add valueList sc.nextInt() sc.nextInt sc List<Integer> costList = new ArrayList<>(); costList new ArrayList<>() for (int i=0; i<n; i++){
            costList.add(sc.nextInt());
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            costList.add(sc.nextInt());
        } {
            costList.add(sc.nextInt());
        } costList.add(sc.nextInt()) costList.add costList sc.nextInt() sc.nextInt sc int totalBenefit = 0; totalBenefit 0 for (int i=0; i<n; i++){
            int benefit = valueList.get(i) - costList.get(i);
            if (benefit > 0){
                totalBenefit += benefit;
            }
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            int benefit = valueList.get(i) - costList.get(i);
            if (benefit > 0){
                totalBenefit += benefit;
            }
        } {
            int benefit = valueList.get(i) - costList.get(i);
            if (benefit > 0){
                totalBenefit += benefit;
            }
        } int benefit = valueList.get(i) - costList.get(i); benefit valueList.get(i) - costList.get(i) valueList.get(i) valueList.get valueList i costList.get(i) costList.get costList i if (benefit > 0){
                totalBenefit += benefit;
            } benefit > 0 benefit 0 {
                totalBenefit += benefit;
            } totalBenefit += benefit totalBenefit benefit System.out.println(totalBenefit) System.out.println System.out System System.out totalBenefit String[] args args public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<Integer> valueList = new ArrayList<>();
        for (int i=0; i<n; i++){
            valueList.add(sc.nextInt());
        }
        List<Integer> costList = new ArrayList<>();
        for (int i=0; i<n; i++){
            costList.add(sc.nextInt());
        }

        int totalBenefit = 0;

        for (int i=0; i<n; i++){
            int benefit = valueList.get(i) - costList.get(i);
            if (benefit > 0){
                totalBenefit += benefit;
            }
        }

        System.out.println(totalBenefit);
    }
} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<Integer> valueList = new ArrayList<>();
        for (int i=0; i<n; i++){
            valueList.add(sc.nextInt());
        }
        List<Integer> costList = new ArrayList<>();
        for (int i=0; i<n; i++){
            costList.add(sc.nextInt());
        }

        int totalBenefit = 0;

        for (int i=0; i<n; i++){
            int benefit = valueList.get(i) - costList.get(i);
            if (benefit > 0){
                totalBenefit += benefit;
            }
        }

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

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<Integer> valueList = new ArrayList<>();
        for (int i=0; i<n; i++){
            valueList.add(sc.nextInt());
        }
        List<Integer> costList = new ArrayList<>();
        for (int i=0; i<n; i++){
            costList.add(sc.nextInt());
        }

        int totalBenefit = 0;

        for (int i=0; i<n; i++){
            int benefit = valueList.get(i) - costList.get(i);
            if (benefit > 0){
                totalBenefit += benefit;
            }
        }

        System.out.println(totalBenefit);
    }
}