import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[][] array = new int[n][2];
        for (int i = 0; i < n; i++) {
            array[i][0] = sc.nextInt();
        }
        for (int i = 0; i < n; i++) {
            array[i][1] = sc.nextInt();
        }
        
        int sum = 0;
        for (int i = 0; i < n; i++) {
            int s = array[i][0] - array[i][1];
            if (s > 0) {
                sum += s;
            }
        }
        System.out.println(sum);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[][] array = new int[n][2];
        for (int i = 0; i < n; i++) {
            array[i][0] = sc.nextInt();
        }
        for (int i = 0; i < n; i++) {
            array[i][1] = sc.nextInt();
        }
        
        int sum = 0;
        for (int i = 0; i < n; i++) {
            int s = array[i][0] - array[i][1];
            if (s > 0) {
                sum += s;
            }
        }
        System.out.println(sum);
    }
} Main public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[][] array = new int[n][2];
        for (int i = 0; i < n; i++) {
            array[i][0] = sc.nextInt();
        }
        for (int i = 0; i < n; i++) {
            array[i][1] = sc.nextInt();
        }
        
        int sum = 0;
        for (int i = 0; i < n; i++) {
            int s = array[i][0] - array[i][1];
            if (s > 0) {
                sum += s;
            }
        }
        System.out.println(sum);
    } main {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[][] array = new int[n][2];
        for (int i = 0; i < n; i++) {
            array[i][0] = sc.nextInt();
        }
        for (int i = 0; i < n; i++) {
            array[i][1] = sc.nextInt();
        }
        
        int sum = 0;
        for (int i = 0; i < n; i++) {
            int s = array[i][0] - array[i][1];
            if (s > 0) {
                sum += s;
            }
        }
        System.out.println(sum);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[][] array = new int[n][2]; array new int[n][2] n 2 for (int i = 0; i < n; i++) {
            array[i][0] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            array[i][0] = sc.nextInt();
        } {
            array[i][0] = sc.nextInt();
        } array[i][0] = sc.nextInt() array[i][0] array[i] array i 0 sc.nextInt() sc.nextInt sc for (int i = 0; i < n; i++) {
            array[i][1] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            array[i][1] = sc.nextInt();
        } {
            array[i][1] = sc.nextInt();
        } array[i][1] = sc.nextInt() array[i][1] array[i] array i 1 sc.nextInt() sc.nextInt sc int sum = 0; sum 0 for (int i = 0; i < n; i++) {
            int s = array[i][0] - array[i][1];
            if (s > 0) {
                sum += s;
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            int s = array[i][0] - array[i][1];
            if (s > 0) {
                sum += s;
            }
        } {
            int s = array[i][0] - array[i][1];
            if (s > 0) {
                sum += s;
            }
        } int s = array[i][0] - array[i][1]; s array[i][0] - array[i][1] array[i][0] array[i] array i 0 array[i][1] array[i] array i 1 if (s > 0) {
                sum += s;
            } s > 0 s 0 {
                sum += s;
            } sum += s sum s 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 {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[][] array = new int[n][2];
        for (int i = 0; i < n; i++) {
            array[i][0] = sc.nextInt();
        }
        for (int i = 0; i < n; i++) {
            array[i][1] = sc.nextInt();
        }
        
        int sum = 0;
        for (int i = 0; i < n; i++) {
            int s = array[i][0] - array[i][1];
            if (s > 0) {
                sum += s;
            }
        }
        System.out.println(sum);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[][] array = new int[n][2];
        for (int i = 0; i < n; i++) {
            array[i][0] = sc.nextInt();
        }
        for (int i = 0; i < n; i++) {
            array[i][1] = sc.nextInt();
        }
        
        int sum = 0;
        for (int i = 0; i < n; i++) {
            int s = array[i][0] - array[i][1];
            if (s > 0) {
                sum += s;
            }
        }
        System.out.println(sum);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[][] array = new int[n][2];
        for (int i = 0; i < n; i++) {
            array[i][0] = sc.nextInt();
        }
        for (int i = 0; i < n; i++) {
            array[i][1] = sc.nextInt();
        }
        
        int sum = 0;
        for (int i = 0; i < n; i++) {
            int s = array[i][0] - array[i][1];
            if (s > 0) {
                sum += s;
            }
        }
        System.out.println(sum);
    }
}
