import java.util.*;
 
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        int[] v = new int[N];
        int[] c = new int[N];
        for(int i = 0; i < N; i++) {
            v[i] = Integer.parseInt(sc.next());
        }
        for(int i = 0; i < N; i++) {
            c[i] = Integer.parseInt(sc.next());
        }
        int count = 0;
        for(int i = 0; i < N; i++) {
            if(c[i] < v[i]) {
                count += v[i] - c[i];
            }
        }
        System.out.println(count);
        
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        int[] v = new int[N];
        int[] c = new int[N];
        for(int i = 0; i < N; i++) {
            v[i] = Integer.parseInt(sc.next());
        }
        for(int i = 0; i < N; i++) {
            c[i] = Integer.parseInt(sc.next());
        }
        int count = 0;
        for(int i = 0; i < N; i++) {
            if(c[i] < v[i]) {
                count += v[i] - c[i];
            }
        }
        System.out.println(count);
        
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        int[] v = new int[N];
        int[] c = new int[N];
        for(int i = 0; i < N; i++) {
            v[i] = Integer.parseInt(sc.next());
        }
        for(int i = 0; i < N; i++) {
            c[i] = Integer.parseInt(sc.next());
        }
        int count = 0;
        for(int i = 0; i < N; i++) {
            if(c[i] < v[i]) {
                count += v[i] - c[i];
            }
        }
        System.out.println(count);
        
    } main {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        int[] v = new int[N];
        int[] c = new int[N];
        for(int i = 0; i < N; i++) {
            v[i] = Integer.parseInt(sc.next());
        }
        for(int i = 0; i < N; i++) {
            c[i] = Integer.parseInt(sc.next());
        }
        int count = 0;
        for(int i = 0; i < N; i++) {
            if(c[i] < v[i]) {
                count += v[i] - c[i];
            }
        }
        System.out.println(count);
        
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = Integer.parseInt(sc.next()); N Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int[] v = new int[N]; v new int[N] N int[] c = new int[N]; c new int[N] N for(int i = 0; i < N; i++) {
            v[i] = Integer.parseInt(sc.next());
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            v[i] = Integer.parseInt(sc.next());
        } {
            v[i] = Integer.parseInt(sc.next());
        } v[i] = Integer.parseInt(sc.next()) v[i] v i Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc for(int i = 0; i < N; i++) {
            c[i] = Integer.parseInt(sc.next());
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            c[i] = Integer.parseInt(sc.next());
        } {
            c[i] = Integer.parseInt(sc.next());
        } c[i] = Integer.parseInt(sc.next()) c[i] c i Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int count = 0; count 0 for(int i = 0; i < N; i++) {
            if(c[i] < v[i]) {
                count += v[i] - c[i];
            }
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            if(c[i] < v[i]) {
                count += v[i] - c[i];
            }
        } {
            if(c[i] < v[i]) {
                count += v[i] - c[i];
            }
        } if(c[i] < v[i]) {
                count += v[i] - c[i];
            } c[i] < v[i] c[i] c i v[i] v i {
                count += v[i] - c[i];
            } count += v[i] - c[i] count v[i] - c[i] v[i] v i c[i] c i System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        int[] v = new int[N];
        int[] c = new int[N];
        for(int i = 0; i < N; i++) {
            v[i] = Integer.parseInt(sc.next());
        }
        for(int i = 0; i < N; i++) {
            c[i] = Integer.parseInt(sc.next());
        }
        int count = 0;
        for(int i = 0; i < N; i++) {
            if(c[i] < v[i]) {
                count += v[i] - c[i];
            }
        }
        System.out.println(count);
        
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        int[] v = new int[N];
        int[] c = new int[N];
        for(int i = 0; i < N; i++) {
            v[i] = Integer.parseInt(sc.next());
        }
        for(int i = 0; i < N; i++) {
            c[i] = Integer.parseInt(sc.next());
        }
        int count = 0;
        for(int i = 0; i < N; i++) {
            if(c[i] < v[i]) {
                count += v[i] - c[i];
            }
        }
        System.out.println(count);
        
    }
} Main
import java.util.*;
 
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        int[] v = new int[N];
        int[] c = new int[N];
        for(int i = 0; i < N; i++) {
            v[i] = Integer.parseInt(sc.next());
        }
        for(int i = 0; i < N; i++) {
            c[i] = Integer.parseInt(sc.next());
        }
        int count = 0;
        for(int i = 0; i < N; i++) {
            if(c[i] < v[i]) {
                count += v[i] - c[i];
            }
        }
        System.out.println(count);
        
    }
}