import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);
        int N = stdIn.nextInt();
        int[] Vi = new int[N];
        for (int i = 0; i < Vi.length; i++) {
            Vi[i] = stdIn.nextInt();
        }
        int[] Ci = new int[N];
        for (int i = 0; i < Ci.length; i++) {
            Ci[i] = stdIn.nextInt();
        }

        int sum = 0;
        for (int i = 0; i < N; i++) {
            if (Vi[i] - Ci[i] > 0) {
                sum += Vi[i] - Ci[i];
            }
        }
        System.out.println(sum);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);
        int N = stdIn.nextInt();
        int[] Vi = new int[N];
        for (int i = 0; i < Vi.length; i++) {
            Vi[i] = stdIn.nextInt();
        }
        int[] Ci = new int[N];
        for (int i = 0; i < Ci.length; i++) {
            Ci[i] = stdIn.nextInt();
        }

        int sum = 0;
        for (int i = 0; i < N; i++) {
            if (Vi[i] - Ci[i] > 0) {
                sum += Vi[i] - Ci[i];
            }
        }
        System.out.println(sum);
    }
} Main public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);
        int N = stdIn.nextInt();
        int[] Vi = new int[N];
        for (int i = 0; i < Vi.length; i++) {
            Vi[i] = stdIn.nextInt();
        }
        int[] Ci = new int[N];
        for (int i = 0; i < Ci.length; i++) {
            Ci[i] = stdIn.nextInt();
        }

        int sum = 0;
        for (int i = 0; i < N; i++) {
            if (Vi[i] - Ci[i] > 0) {
                sum += Vi[i] - Ci[i];
            }
        }
        System.out.println(sum);
    } main {
        Scanner stdIn = new Scanner(System.in);
        int N = stdIn.nextInt();
        int[] Vi = new int[N];
        for (int i = 0; i < Vi.length; i++) {
            Vi[i] = stdIn.nextInt();
        }
        int[] Ci = new int[N];
        for (int i = 0; i < Ci.length; i++) {
            Ci[i] = stdIn.nextInt();
        }

        int sum = 0;
        for (int i = 0; i < N; i++) {
            if (Vi[i] - Ci[i] > 0) {
                sum += Vi[i] - Ci[i];
            }
        }
        System.out.println(sum);
    } Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int N = stdIn.nextInt(); N stdIn.nextInt() stdIn.nextInt stdIn int[] Vi = new int[N]; Vi new int[N] N for (int i = 0; i < Vi.length; i++) {
            Vi[i] = stdIn.nextInt();
        } int i = 0; int i = 0; i 0 i < Vi.length i Vi.length Vi Vi.length i++ i++ i {
            Vi[i] = stdIn.nextInt();
        } {
            Vi[i] = stdIn.nextInt();
        } Vi[i] = stdIn.nextInt() Vi[i] Vi i stdIn.nextInt() stdIn.nextInt stdIn int[] Ci = new int[N]; Ci new int[N] N for (int i = 0; i < Ci.length; i++) {
            Ci[i] = stdIn.nextInt();
        } int i = 0; int i = 0; i 0 i < Ci.length i Ci.length Ci Ci.length i++ i++ i {
            Ci[i] = stdIn.nextInt();
        } {
            Ci[i] = stdIn.nextInt();
        } Ci[i] = stdIn.nextInt() Ci[i] Ci i stdIn.nextInt() stdIn.nextInt stdIn int sum = 0; sum 0 for (int i = 0; i < N; i++) {
            if (Vi[i] - Ci[i] > 0) {
                sum += Vi[i] - Ci[i];
            }
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            if (Vi[i] - Ci[i] > 0) {
                sum += Vi[i] - Ci[i];
            }
        } {
            if (Vi[i] - Ci[i] > 0) {
                sum += Vi[i] - Ci[i];
            }
        } if (Vi[i] - Ci[i] > 0) {
                sum += Vi[i] - Ci[i];
            } Vi[i] - Ci[i] > 0 Vi[i] - Ci[i] Vi[i] Vi i Ci[i] Ci i 0 {
                sum += Vi[i] - Ci[i];
            } sum += Vi[i] - Ci[i] sum Vi[i] - Ci[i] Vi[i] Vi i Ci[i] Ci i System.out.println(sum) System.out.println System.out System System.out sum String[] args args public class Main {
    public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);
        int N = stdIn.nextInt();
        int[] Vi = new int[N];
        for (int i = 0; i < Vi.length; i++) {
            Vi[i] = stdIn.nextInt();
        }
        int[] Ci = new int[N];
        for (int i = 0; i < Ci.length; i++) {
            Ci[i] = stdIn.nextInt();
        }

        int sum = 0;
        for (int i = 0; i < N; i++) {
            if (Vi[i] - Ci[i] > 0) {
                sum += Vi[i] - Ci[i];
            }
        }
        System.out.println(sum);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);
        int N = stdIn.nextInt();
        int[] Vi = new int[N];
        for (int i = 0; i < Vi.length; i++) {
            Vi[i] = stdIn.nextInt();
        }
        int[] Ci = new int[N];
        for (int i = 0; i < Ci.length; i++) {
            Ci[i] = stdIn.nextInt();
        }

        int sum = 0;
        for (int i = 0; i < N; i++) {
            if (Vi[i] - Ci[i] > 0) {
                sum += Vi[i] - Ci[i];
            }
        }
        System.out.println(sum);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);
        int N = stdIn.nextInt();
        int[] Vi = new int[N];
        for (int i = 0; i < Vi.length; i++) {
            Vi[i] = stdIn.nextInt();
        }
        int[] Ci = new int[N];
        for (int i = 0; i < Ci.length; i++) {
            Ci[i] = stdIn.nextInt();
        }

        int sum = 0;
        for (int i = 0; i < N; i++) {
            if (Vi[i] - Ci[i] > 0) {
                sum += Vi[i] - Ci[i];
            }
        }
        System.out.println(sum);
    }
}