import java.util.Scanner;

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 sum1 = 0;
        int sum2 = 0;
        for (int j = 0; j < n; j++) {
            int tmp1 = v[0][j];
            int tmp2 = v[1][j];
            if(tmp1 - tmp2 > 0) {
                sum1 += tmp1;
                sum2 += tmp2;
            }
        }
        System.out.println(sum1 - sum2);
    }
} import java.util.Scanner; Scanner 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 sum1 = 0;
        int sum2 = 0;
        for (int j = 0; j < n; j++) {
            int tmp1 = v[0][j];
            int tmp2 = v[1][j];
            if(tmp1 - tmp2 > 0) {
                sum1 += tmp1;
                sum2 += tmp2;
            }
        }
        System.out.println(sum1 - sum2);
    }
} 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 sum1 = 0;
        int sum2 = 0;
        for (int j = 0; j < n; j++) {
            int tmp1 = v[0][j];
            int tmp2 = v[1][j];
            if(tmp1 - tmp2 > 0) {
                sum1 += tmp1;
                sum2 += tmp2;
            }
        }
        System.out.println(sum1 - sum2);
    } 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 sum1 = 0;
        int sum2 = 0;
        for (int j = 0; j < n; j++) {
            int tmp1 = v[0][j];
            int tmp2 = v[1][j];
            if(tmp1 - tmp2 > 0) {
                sum1 += tmp1;
                sum2 += tmp2;
            }
        }
        System.out.println(sum1 - sum2);
    } 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 sum1 = 0; sum1 0 int sum2 = 0; sum2 0 for (int j = 0; j < n; j++) {
            int tmp1 = v[0][j];
            int tmp2 = v[1][j];
            if(tmp1 - tmp2 > 0) {
                sum1 += tmp1;
                sum2 += tmp2;
            }
        } int j = 0; int j = 0; j 0 j < n j n j++ j++ j {
            int tmp1 = v[0][j];
            int tmp2 = v[1][j];
            if(tmp1 - tmp2 > 0) {
                sum1 += tmp1;
                sum2 += tmp2;
            }
        } {
            int tmp1 = v[0][j];
            int tmp2 = v[1][j];
            if(tmp1 - tmp2 > 0) {
                sum1 += tmp1;
                sum2 += tmp2;
            }
        } int tmp1 = v[0][j]; tmp1 v[0][j] v[0] v 0 j int tmp2 = v[1][j]; tmp2 v[1][j] v[1] v 1 j if(tmp1 - tmp2 > 0) {
                sum1 += tmp1;
                sum2 += tmp2;
            } tmp1 - tmp2 > 0 tmp1 - tmp2 tmp1 tmp2 0 {
                sum1 += tmp1;
                sum2 += tmp2;
            } sum1 += tmp1 sum1 tmp1 sum2 += tmp2 sum2 tmp2 System.out.println(sum1 - sum2) System.out.println System.out System System.out sum1 - sum2 sum1 sum2 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 sum1 = 0;
        int sum2 = 0;
        for (int j = 0; j < n; j++) {
            int tmp1 = v[0][j];
            int tmp2 = v[1][j];
            if(tmp1 - tmp2 > 0) {
                sum1 += tmp1;
                sum2 += tmp2;
            }
        }
        System.out.println(sum1 - sum2);
    }
} 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 sum1 = 0;
        int sum2 = 0;
        for (int j = 0; j < n; j++) {
            int tmp1 = v[0][j];
            int tmp2 = v[1][j];
            if(tmp1 - tmp2 > 0) {
                sum1 += tmp1;
                sum2 += tmp2;
            }
        }
        System.out.println(sum1 - sum2);
    }
} Main
import java.util.Scanner;

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 sum1 = 0;
        int sum2 = 0;
        for (int j = 0; j < n; j++) {
            int tmp1 = v[0][j];
            int tmp2 = v[1][j];
            if(tmp1 - tmp2 > 0) {
                sum1 += tmp1;
                sum2 += tmp2;
            }
        }
        System.out.println(sum1 - sum2);
    }
}