import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = 2;
        int m = sc.nextInt();

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

        int[][] table = new int[n][m];
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < m; j++) {
                table[i][j] = sc.nextInt();
            }
        }
        int sum=0;
        for (int i = 0; i < m; i++) {
        if(table[0][i]>table[1][i])
        	sum+=table[0][i]-table[1][i];
        }
        System.out.println(sum);
		sc.close();
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = 2;
        int m = sc.nextInt();

        int[][] table = new int[n][m];
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < m; j++) {
                table[i][j] = sc.nextInt();
            }
        }
        int sum=0;
        for (int i = 0; i < m; i++) {
        if(table[0][i]>table[1][i])
        	sum+=table[0][i]-table[1][i];
        }
        System.out.println(sum);
		sc.close();
    } main {
        Scanner sc = new Scanner(System.in);
        int n = 2;
        int m = sc.nextInt();

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

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

        int[][] table = new int[n][m];
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < m; j++) {
                table[i][j] = sc.nextInt();
            }
        }
        int sum=0;
        for (int i = 0; i < m; i++) {
        if(table[0][i]>table[1][i])
        	sum+=table[0][i]-table[1][i];
        }
        System.out.println(sum);
		sc.close();
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = 2;
        int m = sc.nextInt();

        int[][] table = new int[n][m];
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < m; j++) {
                table[i][j] = sc.nextInt();
            }
        }
        int sum=0;
        for (int i = 0; i < m; i++) {
        if(table[0][i]>table[1][i])
        	sum+=table[0][i]-table[1][i];
        }
        System.out.println(sum);
		sc.close();
    }
}