import java.util.Scanner;

public class Main {

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

        int n = sc.nextInt();
        // スペース区切りの整数の入力
        int[] value = new int[n];
        int[] cost = new int[n];
        int[] trueValue = new int[n];
        int max = 0;

        for(int i = 0; i < n; i++){
            value[i] = sc.nextInt();
        }
        for(int i = 0; i < n; i++){
            cost[i] = sc.nextInt();
        }
        for(int i = 0; i < n; i++){
            trueValue[i] = value[i] - cost[i];
            if(trueValue[i] > 0){
                max += trueValue[i];
             }
        }
        System.out.println(max);
    }
} import java.util.Scanner; Scanner java.util public class Main {

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

        int n = sc.nextInt();
        // スペース区切りの整数の入力
        int[] value = new int[n];
        int[] cost = new int[n];
        int[] trueValue = new int[n];
        int max = 0;

        for(int i = 0; i < n; i++){
            value[i] = sc.nextInt();
        }
        for(int i = 0; i < n; i++){
            cost[i] = sc.nextInt();
        }
        for(int i = 0; i < n; i++){
            trueValue[i] = value[i] - cost[i];
            if(trueValue[i] > 0){
                max += trueValue[i];
             }
        }
        System.out.println(max);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        // スペース区切りの整数の入力
        int[] value = new int[n];
        int[] cost = new int[n];
        int[] trueValue = new int[n];
        int max = 0;

        for(int i = 0; i < n; i++){
            value[i] = sc.nextInt();
        }
        for(int i = 0; i < n; i++){
            cost[i] = sc.nextInt();
        }
        for(int i = 0; i < n; i++){
            trueValue[i] = value[i] - cost[i];
            if(trueValue[i] > 0){
                max += trueValue[i];
             }
        }
        System.out.println(max);
    } main {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        // スペース区切りの整数の入力
        int[] value = new int[n];
        int[] cost = new int[n];
        int[] trueValue = new int[n];
        int max = 0;

        for(int i = 0; i < n; i++){
            value[i] = sc.nextInt();
        }
        for(int i = 0; i < n; i++){
            cost[i] = sc.nextInt();
        }
        for(int i = 0; i < n; i++){
            trueValue[i] = value[i] - cost[i];
            if(trueValue[i] > 0){
                max += trueValue[i];
             }
        }
        System.out.println(max);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] value = new int[n]; value new int[n] n int[] cost = new int[n]; cost new int[n] n int[] trueValue = new int[n]; trueValue new int[n] n int max = 0; max 0 for(int i = 0; i < n; i++){
            value[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            value[i] = sc.nextInt();
        } {
            value[i] = sc.nextInt();
        } value[i] = sc.nextInt() value[i] value i sc.nextInt() sc.nextInt sc for(int i = 0; i < n; i++){
            cost[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            cost[i] = sc.nextInt();
        } {
            cost[i] = sc.nextInt();
        } cost[i] = sc.nextInt() cost[i] cost i sc.nextInt() sc.nextInt sc for(int i = 0; i < n; i++){
            trueValue[i] = value[i] - cost[i];
            if(trueValue[i] > 0){
                max += trueValue[i];
             }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            trueValue[i] = value[i] - cost[i];
            if(trueValue[i] > 0){
                max += trueValue[i];
             }
        } {
            trueValue[i] = value[i] - cost[i];
            if(trueValue[i] > 0){
                max += trueValue[i];
             }
        } trueValue[i] = value[i] - cost[i] trueValue[i] trueValue i value[i] - cost[i] value[i] value i cost[i] cost i if(trueValue[i] > 0){
                max += trueValue[i];
             } trueValue[i] > 0 trueValue[i] trueValue i 0 {
                max += trueValue[i];
             } max += trueValue[i] max trueValue[i] trueValue i System.out.println(max) System.out.println System.out System System.out max String[] args args public class Main {

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

        int n = sc.nextInt();
        // スペース区切りの整数の入力
        int[] value = new int[n];
        int[] cost = new int[n];
        int[] trueValue = new int[n];
        int max = 0;

        for(int i = 0; i < n; i++){
            value[i] = sc.nextInt();
        }
        for(int i = 0; i < n; i++){
            cost[i] = sc.nextInt();
        }
        for(int i = 0; i < n; i++){
            trueValue[i] = value[i] - cost[i];
            if(trueValue[i] > 0){
                max += trueValue[i];
             }
        }
        System.out.println(max);
    }
} public class Main {

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

        int n = sc.nextInt();
        // スペース区切りの整数の入力
        int[] value = new int[n];
        int[] cost = new int[n];
        int[] trueValue = new int[n];
        int max = 0;

        for(int i = 0; i < n; i++){
            value[i] = sc.nextInt();
        }
        for(int i = 0; i < n; i++){
            cost[i] = sc.nextInt();
        }
        for(int i = 0; i < n; i++){
            trueValue[i] = value[i] - cost[i];
            if(trueValue[i] > 0){
                max += trueValue[i];
             }
        }
        System.out.println(max);
    }
} Main
import java.util.Scanner;

public class Main {

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

        int n = sc.nextInt();
        // スペース区切りの整数の入力
        int[] value = new int[n];
        int[] cost = new int[n];
        int[] trueValue = new int[n];
        int max = 0;

        for(int i = 0; i < n; i++){
            value[i] = sc.nextInt();
        }
        for(int i = 0; i < n; i++){
            cost[i] = sc.nextInt();
        }
        for(int i = 0; i < n; i++){
            trueValue[i] = value[i] - cost[i];
            if(trueValue[i] > 0){
                max += trueValue[i];
             }
        }
        System.out.println(max);
    }
}