import java.util.*;
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[][] v = new int[2][n];
        for(int i = 0 ; i < 2 ; i++ ){
            for(int j = 0 ; j < n ; j++ ){
                v[i][j] = sc.nextInt();
            }
        }
        int s = 0;
        for(int i = 0 ; i < n ; i++ ){
            if(v[0][i] > v[1][i]){
                s += (v[0][i] - v[1][i]);
            }
        }
        sc.close();
        System.out.println(s);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[][] v = new int[2][n];
        for(int i = 0 ; i < 2 ; i++ ){
            for(int j = 0 ; j < n ; j++ ){
                v[i][j] = sc.nextInt();
            }
        }
        int s = 0;
        for(int i = 0 ; i < n ; i++ ){
            if(v[0][i] > v[1][i]){
                s += (v[0][i] - v[1][i]);
            }
        }
        sc.close();
        System.out.println(s);
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[][] v = new int[2][n];
        for(int i = 0 ; i < 2 ; i++ ){
            for(int j = 0 ; j < n ; j++ ){
                v[i][j] = sc.nextInt();
            }
        }
        int s = 0;
        for(int i = 0 ; i < n ; i++ ){
            if(v[0][i] > v[1][i]){
                s += (v[0][i] - v[1][i]);
            }
        }
        sc.close();
        System.out.println(s);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[][] v = new int[2][n];
        for(int i = 0 ; i < 2 ; i++ ){
            for(int j = 0 ; j < n ; j++ ){
                v[i][j] = sc.nextInt();
            }
        }
        int s = 0;
        for(int i = 0 ; i < n ; i++ ){
            if(v[0][i] > v[1][i]){
                s += (v[0][i] - v[1][i]);
            }
        }
        sc.close();
        System.out.println(s);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[][] v = new int[2][n]; v new int[2][n] 2 n for(int i = 0 ; i < 2 ; i++ ){
            for(int j = 0 ; j < n ; j++ ){
                v[i][j] = sc.nextInt();
            }
        } int i = 0 ; int i = 0 ; i 0 i < 2 i 2 i++ i++ i {
            for(int j = 0 ; j < n ; j++ ){
                v[i][j] = sc.nextInt();
            }
        } {
            for(int j = 0 ; j < n ; j++ ){
                v[i][j] = sc.nextInt();
            }
        } for(int j = 0 ; j < n ; j++ ){
                v[i][j] = sc.nextInt();
            } int j = 0 ; int j = 0 ; j 0 j < n j n j++ j++ j {
                v[i][j] = sc.nextInt();
            } {
                v[i][j] = sc.nextInt();
            } v[i][j] = sc.nextInt() v[i][j] v[i] v i j sc.nextInt() sc.nextInt sc int s = 0; s 0 for(int i = 0 ; i < n ; i++ ){
            if(v[0][i] > v[1][i]){
                s += (v[0][i] - v[1][i]);
            }
        } int i = 0 ; int i = 0 ; i 0 i < n i n i++ i++ i {
            if(v[0][i] > v[1][i]){
                s += (v[0][i] - v[1][i]);
            }
        } {
            if(v[0][i] > v[1][i]){
                s += (v[0][i] - v[1][i]);
            }
        } if(v[0][i] > v[1][i]){
                s += (v[0][i] - v[1][i]);
            } v[0][i] > v[1][i] v[0][i] v[0] v 0 i v[1][i] v[1] v 1 i {
                s += (v[0][i] - v[1][i]);
            } s += (v[0][i] - v[1][i]) s (v[0][i] - v[1][i]) v[0][i] v[0] v 0 i v[1][i] v[1] v 1 i sc.close() sc.close sc System.out.println(s) System.out.println System.out System System.out s String[] args args public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[][] v = new int[2][n];
        for(int i = 0 ; i < 2 ; i++ ){
            for(int j = 0 ; j < n ; j++ ){
                v[i][j] = sc.nextInt();
            }
        }
        int s = 0;
        for(int i = 0 ; i < n ; i++ ){
            if(v[0][i] > v[1][i]){
                s += (v[0][i] - v[1][i]);
            }
        }
        sc.close();
        System.out.println(s);
    }
} public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[][] v = new int[2][n];
        for(int i = 0 ; i < 2 ; i++ ){
            for(int j = 0 ; j < n ; j++ ){
                v[i][j] = sc.nextInt();
            }
        }
        int s = 0;
        for(int i = 0 ; i < n ; i++ ){
            if(v[0][i] > v[1][i]){
                s += (v[0][i] - v[1][i]);
            }
        }
        sc.close();
        System.out.println(s);
    }
} Main
import java.util.*;
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[][] v = new int[2][n];
        for(int i = 0 ; i < 2 ; i++ ){
            for(int j = 0 ; j < n ; j++ ){
                v[i][j] = sc.nextInt();
            }
        }
        int s = 0;
        for(int i = 0 ; i < n ; i++ ){
            if(v[0][i] > v[1][i]){
                s += (v[0][i] - v[1][i]);
            }
        }
        sc.close();
        System.out.println(s);
    }
}