import java.util.*;


public class Main {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] values = new int[n];
        int[] costs = new int[n];
        
        for (int i = 0; i < n; i++) {
            values[i] = sc.nextInt();
        }
        for (int i = 0; i < n; i++) {
            costs[i] = sc.nextInt();
        }
        
        int sum = 0;
        
        for (int i = 0; i < n; i++) {
            if (values[i] - costs[i] > 0) {
                sum += values[i] - costs[i];
            }
        }
        
        System.out.println(sum);
    }
} 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[] values = new int[n];
        int[] costs = new int[n];
        
        for (int i = 0; i < n; i++) {
            values[i] = sc.nextInt();
        }
        for (int i = 0; i < n; i++) {
            costs[i] = sc.nextInt();
        }
        
        int sum = 0;
        
        for (int i = 0; i < n; i++) {
            if (values[i] - costs[i] > 0) {
                sum += values[i] - costs[i];
            }
        }
        
        System.out.println(sum);
    }
} Main public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] values = new int[n];
        int[] costs = new int[n];
        
        for (int i = 0; i < n; i++) {
            values[i] = sc.nextInt();
        }
        for (int i = 0; i < n; i++) {
            costs[i] = sc.nextInt();
        }
        
        int sum = 0;
        
        for (int i = 0; i < n; i++) {
            if (values[i] - costs[i] > 0) {
                sum += values[i] - costs[i];
            }
        }
        
        System.out.println(sum);
    } main {

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] values = new int[n];
        int[] costs = new int[n];
        
        for (int i = 0; i < n; i++) {
            values[i] = sc.nextInt();
        }
        for (int i = 0; i < n; i++) {
            costs[i] = sc.nextInt();
        }
        
        int sum = 0;
        
        for (int i = 0; i < n; i++) {
            if (values[i] - costs[i] > 0) {
                sum += values[i] - costs[i];
            }
        }
        
        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[] values = new int[n]; values new int[n] n int[] costs = new int[n]; costs new int[n] n for (int i = 0; i < n; i++) {
            values[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            values[i] = sc.nextInt();
        } {
            values[i] = sc.nextInt();
        } values[i] = sc.nextInt() values[i] values i sc.nextInt() sc.nextInt sc for (int i = 0; i < n; i++) {
            costs[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            costs[i] = sc.nextInt();
        } {
            costs[i] = sc.nextInt();
        } costs[i] = sc.nextInt() costs[i] costs i sc.nextInt() sc.nextInt sc int sum = 0; sum 0 for (int i = 0; i < n; i++) {
            if (values[i] - costs[i] > 0) {
                sum += values[i] - costs[i];
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            if (values[i] - costs[i] > 0) {
                sum += values[i] - costs[i];
            }
        } {
            if (values[i] - costs[i] > 0) {
                sum += values[i] - costs[i];
            }
        } if (values[i] - costs[i] > 0) {
                sum += values[i] - costs[i];
            } values[i] - costs[i] > 0 values[i] - costs[i] values[i] values i costs[i] costs i 0 {
                sum += values[i] - costs[i];
            } sum += values[i] - costs[i] sum values[i] - costs[i] values[i] values i costs[i] costs i 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) {

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

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] values = new int[n];
        int[] costs = new int[n];
        
        for (int i = 0; i < n; i++) {
            values[i] = sc.nextInt();
        }
        for (int i = 0; i < n; i++) {
            costs[i] = sc.nextInt();
        }
        
        int sum = 0;
        
        for (int i = 0; i < n; i++) {
            if (values[i] - costs[i] > 0) {
                sum += values[i] - costs[i];
            }
        }
        
        System.out.println(sum);
    }
} Main
import java.util.*;


public class Main {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] values = new int[n];
        int[] costs = new int[n];
        
        for (int i = 0; i < n; i++) {
            values[i] = sc.nextInt();
        }
        for (int i = 0; i < n; i++) {
            costs[i] = sc.nextInt();
        }
        
        int sum = 0;
        
        for (int i = 0; i < n; i++) {
            if (values[i] - costs[i] > 0) {
                sum += values[i] - costs[i];
            }
        }
        
        System.out.println(sum);
    }
}