import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
	    int n = Integer.parseInt(sc.next());
        int[][] val_cost = new int[2][n];
        
        for (int i = 0; i < 2; i++) {
            for (int j = 0; j < n; j++) {
                val_cost[i][j] = Integer.parseInt(sc.next());
            }
        }
        int val_sum = 0;
        int cost_sum = 0;
        for (int i = 0; i < n; i++) {
            int val = val_cost[0][i];
            int cost = val_cost[1][i];
            if (val > cost) {
                val_sum += val;
                cost_sum += cost;
            }
        }
        System.out.println(val_sum - cost_sum);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
	    int n = Integer.parseInt(sc.next());
        int[][] val_cost = new int[2][n];
        
        for (int i = 0; i < 2; i++) {
            for (int j = 0; j < n; j++) {
                val_cost[i][j] = Integer.parseInt(sc.next());
            }
        }
        int val_sum = 0;
        int cost_sum = 0;
        for (int i = 0; i < n; i++) {
            int val = val_cost[0][i];
            int cost = val_cost[1][i];
            if (val > cost) {
                val_sum += val;
                cost_sum += cost;
            }
        }
        System.out.println(val_sum - cost_sum);
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
	    int n = Integer.parseInt(sc.next());
        int[][] val_cost = new int[2][n];
        
        for (int i = 0; i < 2; i++) {
            for (int j = 0; j < n; j++) {
                val_cost[i][j] = Integer.parseInt(sc.next());
            }
        }
        int val_sum = 0;
        int cost_sum = 0;
        for (int i = 0; i < n; i++) {
            int val = val_cost[0][i];
            int cost = val_cost[1][i];
            if (val > cost) {
                val_sum += val;
                cost_sum += cost;
            }
        }
        System.out.println(val_sum - cost_sum);
    } main {
        Scanner sc = new Scanner(System.in);
	    int n = Integer.parseInt(sc.next());
        int[][] val_cost = new int[2][n];
        
        for (int i = 0; i < 2; i++) {
            for (int j = 0; j < n; j++) {
                val_cost[i][j] = Integer.parseInt(sc.next());
            }
        }
        int val_sum = 0;
        int cost_sum = 0;
        for (int i = 0; i < n; i++) {
            int val = val_cost[0][i];
            int cost = val_cost[1][i];
            if (val > cost) {
                val_sum += val;
                cost_sum += cost;
            }
        }
        System.out.println(val_sum - cost_sum);
    } 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[][] val_cost = new int[2][n]; val_cost new int[2][n] 2 n for (int i = 0; i < 2; i++) {
            for (int j = 0; j < n; j++) {
                val_cost[i][j] = Integer.parseInt(sc.next());
            }
        } int i = 0; int i = 0; i 0 i < 2 i 2 i++ i++ i {
            for (int j = 0; j < n; j++) {
                val_cost[i][j] = Integer.parseInt(sc.next());
            }
        } {
            for (int j = 0; j < n; j++) {
                val_cost[i][j] = Integer.parseInt(sc.next());
            }
        } for (int j = 0; j < n; j++) {
                val_cost[i][j] = Integer.parseInt(sc.next());
            } int j = 0; int j = 0; j 0 j < n j n j++ j++ j {
                val_cost[i][j] = Integer.parseInt(sc.next());
            } {
                val_cost[i][j] = Integer.parseInt(sc.next());
            } val_cost[i][j] = Integer.parseInt(sc.next()) val_cost[i][j] val_cost[i] val_cost i j Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int val_sum = 0; val_sum 0 int cost_sum = 0; cost_sum 0 for (int i = 0; i < n; i++) {
            int val = val_cost[0][i];
            int cost = val_cost[1][i];
            if (val > cost) {
                val_sum += val;
                cost_sum += cost;
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            int val = val_cost[0][i];
            int cost = val_cost[1][i];
            if (val > cost) {
                val_sum += val;
                cost_sum += cost;
            }
        } {
            int val = val_cost[0][i];
            int cost = val_cost[1][i];
            if (val > cost) {
                val_sum += val;
                cost_sum += cost;
            }
        } int val = val_cost[0][i]; val val_cost[0][i] val_cost[0] val_cost 0 i int cost = val_cost[1][i]; cost val_cost[1][i] val_cost[1] val_cost 1 i if (val > cost) {
                val_sum += val;
                cost_sum += cost;
            } val > cost val cost {
                val_sum += val;
                cost_sum += cost;
            } val_sum += val val_sum val cost_sum += cost cost_sum cost System.out.println(val_sum - cost_sum) System.out.println System.out System System.out val_sum - cost_sum val_sum cost_sum String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
	    int n = Integer.parseInt(sc.next());
        int[][] val_cost = new int[2][n];
        
        for (int i = 0; i < 2; i++) {
            for (int j = 0; j < n; j++) {
                val_cost[i][j] = Integer.parseInt(sc.next());
            }
        }
        int val_sum = 0;
        int cost_sum = 0;
        for (int i = 0; i < n; i++) {
            int val = val_cost[0][i];
            int cost = val_cost[1][i];
            if (val > cost) {
                val_sum += val;
                cost_sum += cost;
            }
        }
        System.out.println(val_sum - cost_sum);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
	    int n = Integer.parseInt(sc.next());
        int[][] val_cost = new int[2][n];
        
        for (int i = 0; i < 2; i++) {
            for (int j = 0; j < n; j++) {
                val_cost[i][j] = Integer.parseInt(sc.next());
            }
        }
        int val_sum = 0;
        int cost_sum = 0;
        for (int i = 0; i < n; i++) {
            int val = val_cost[0][i];
            int cost = val_cost[1][i];
            if (val > cost) {
                val_sum += val;
                cost_sum += cost;
            }
        }
        System.out.println(val_sum - cost_sum);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
	    int n = Integer.parseInt(sc.next());
        int[][] val_cost = new int[2][n];
        
        for (int i = 0; i < 2; i++) {
            for (int j = 0; j < n; j++) {
                val_cost[i][j] = Integer.parseInt(sc.next());
            }
        }
        int val_sum = 0;
        int cost_sum = 0;
        for (int i = 0; i < n; i++) {
            int val = val_cost[0][i];
            int cost = val_cost[1][i];
            if (val > cost) {
                val_sum += val;
                cost_sum += cost;
            }
        }
        System.out.println(val_sum - cost_sum);
    }
}
