import java.util.Scanner;

public class Main {
    public static void main(String args[]) throws Exception {
        Scanner s = new Scanner(System.in);
        int N = s.nextInt();
        int V[] = new int[N];
        for (int i = 0; i < N; i++) {
            V[i] = s.nextInt();
        }
        int sum = 0;
        int diff = 0;
        for (int v: V) {
            diff = v - s.nextInt(); 
            if ((diff) > 0) {
                sum = sum + diff;
            }
        }
        System.out.println(sum);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String args[]) throws Exception {
        Scanner s = new Scanner(System.in);
        int N = s.nextInt();
        int V[] = new int[N];
        for (int i = 0; i < N; i++) {
            V[i] = s.nextInt();
        }
        int sum = 0;
        int diff = 0;
        for (int v: V) {
            diff = v - s.nextInt(); 
            if ((diff) > 0) {
                sum = sum + diff;
            }
        }
        System.out.println(sum);
    }
} Main public static void main(String args[]) throws Exception {
        Scanner s = new Scanner(System.in);
        int N = s.nextInt();
        int V[] = new int[N];
        for (int i = 0; i < N; i++) {
            V[i] = s.nextInt();
        }
        int sum = 0;
        int diff = 0;
        for (int v: V) {
            diff = v - s.nextInt(); 
            if ((diff) > 0) {
                sum = sum + diff;
            }
        }
        System.out.println(sum);
    } main {
        Scanner s = new Scanner(System.in);
        int N = s.nextInt();
        int V[] = new int[N];
        for (int i = 0; i < N; i++) {
            V[i] = s.nextInt();
        }
        int sum = 0;
        int diff = 0;
        for (int v: V) {
            diff = v - s.nextInt(); 
            if ((diff) > 0) {
                sum = sum + diff;
            }
        }
        System.out.println(sum);
    } Scanner s = new Scanner(System.in); s new Scanner(System.in) int N = s.nextInt(); N s.nextInt() s.nextInt s int V[] = new int[N]; V new int[N] N for (int i = 0; i < N; i++) {
            V[i] = s.nextInt();
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            V[i] = s.nextInt();
        } {
            V[i] = s.nextInt();
        } V[i] = s.nextInt() V[i] V i s.nextInt() s.nextInt s int sum = 0; sum 0 int diff = 0; diff 0 for (int v: V) {
            diff = v - s.nextInt(); 
            if ((diff) > 0) {
                sum = sum + diff;
            }
        } int v V {
            diff = v - s.nextInt(); 
            if ((diff) > 0) {
                sum = sum + diff;
            }
        } {
            diff = v - s.nextInt(); 
            if ((diff) > 0) {
                sum = sum + diff;
            }
        } diff = v - s.nextInt() diff v - s.nextInt() v s.nextInt() s.nextInt s if ((diff) > 0) {
                sum = sum + diff;
            } (diff) > 0 (diff) 0 {
                sum = sum + diff;
            } sum = sum + diff sum sum + diff sum diff 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[]) throws Exception {
        Scanner s = new Scanner(System.in);
        int N = s.nextInt();
        int V[] = new int[N];
        for (int i = 0; i < N; i++) {
            V[i] = s.nextInt();
        }
        int sum = 0;
        int diff = 0;
        for (int v: V) {
            diff = v - s.nextInt(); 
            if ((diff) > 0) {
                sum = sum + diff;
            }
        }
        System.out.println(sum);
    }
} public class Main {
    public static void main(String args[]) throws Exception {
        Scanner s = new Scanner(System.in);
        int N = s.nextInt();
        int V[] = new int[N];
        for (int i = 0; i < N; i++) {
            V[i] = s.nextInt();
        }
        int sum = 0;
        int diff = 0;
        for (int v: V) {
            diff = v - s.nextInt(); 
            if ((diff) > 0) {
                sum = sum + diff;
            }
        }
        System.out.println(sum);
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String args[]) throws Exception {
        Scanner s = new Scanner(System.in);
        int N = s.nextInt();
        int V[] = new int[N];
        for (int i = 0; i < N; i++) {
            V[i] = s.nextInt();
        }
        int sum = 0;
        int diff = 0;
        for (int v: V) {
            diff = v - s.nextInt(); 
            if ((diff) > 0) {
                sum = sum + diff;
            }
        }
        System.out.println(sum);
    }
}