import java.util.*;


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

        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        
        int[] v = new int[a];
        int[] c = new int[a];
        
        for(int i = 0; i < a; i++){
            v[i] = sc.nextInt();
        }
        
        for(int j = 0; j < a; j++){
            c[j] = sc.nextInt();
        }
        
        int result = 0;
        for(int k = 0; k < a; k++){
            int g = v[k] - c[k];
            if(g > 0){
                result += g;
            }
        }
        
        System.out.println(result);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        
        int[] v = new int[a];
        int[] c = new int[a];
        
        for(int i = 0; i < a; i++){
            v[i] = sc.nextInt();
        }
        
        for(int j = 0; j < a; j++){
            c[j] = sc.nextInt();
        }
        
        int result = 0;
        for(int k = 0; k < a; k++){
            int g = v[k] - c[k];
            if(g > 0){
                result += g;
            }
        }
        
        System.out.println(result);
    }
} Main public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        
        int[] v = new int[a];
        int[] c = new int[a];
        
        for(int i = 0; i < a; i++){
            v[i] = sc.nextInt();
        }
        
        for(int j = 0; j < a; j++){
            c[j] = sc.nextInt();
        }
        
        int result = 0;
        for(int k = 0; k < a; k++){
            int g = v[k] - c[k];
            if(g > 0){
                result += g;
            }
        }
        
        System.out.println(result);
    } main {

        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        
        int[] v = new int[a];
        int[] c = new int[a];
        
        for(int i = 0; i < a; i++){
            v[i] = sc.nextInt();
        }
        
        for(int j = 0; j < a; j++){
            c[j] = sc.nextInt();
        }
        
        int result = 0;
        for(int k = 0; k < a; k++){
            int g = v[k] - c[k];
            if(g > 0){
                result += g;
            }
        }
        
        System.out.println(result);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int[] v = new int[a]; v new int[a] a int[] c = new int[a]; c new int[a] a for(int i = 0; i < a; i++){
            v[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < a i a i++ i++ i {
            v[i] = sc.nextInt();
        } {
            v[i] = sc.nextInt();
        } v[i] = sc.nextInt() v[i] v i sc.nextInt() sc.nextInt sc for(int j = 0; j < a; j++){
            c[j] = sc.nextInt();
        } int j = 0; int j = 0; j 0 j < a j a j++ j++ j {
            c[j] = sc.nextInt();
        } {
            c[j] = sc.nextInt();
        } c[j] = sc.nextInt() c[j] c j sc.nextInt() sc.nextInt sc int result = 0; result 0 for(int k = 0; k < a; k++){
            int g = v[k] - c[k];
            if(g > 0){
                result += g;
            }
        } int k = 0; int k = 0; k 0 k < a k a k++ k++ k {
            int g = v[k] - c[k];
            if(g > 0){
                result += g;
            }
        } {
            int g = v[k] - c[k];
            if(g > 0){
                result += g;
            }
        } int g = v[k] - c[k]; g v[k] - c[k] v[k] v k c[k] c k if(g > 0){
                result += g;
            } g > 0 g 0 {
                result += g;
            } result += g result g System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        
        int[] v = new int[a];
        int[] c = new int[a];
        
        for(int i = 0; i < a; i++){
            v[i] = sc.nextInt();
        }
        
        for(int j = 0; j < a; j++){
            c[j] = sc.nextInt();
        }
        
        int result = 0;
        for(int k = 0; k < a; k++){
            int g = v[k] - c[k];
            if(g > 0){
                result += g;
            }
        }
        
        System.out.println(result);
    }
} public class Main {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        
        int[] v = new int[a];
        int[] c = new int[a];
        
        for(int i = 0; i < a; i++){
            v[i] = sc.nextInt();
        }
        
        for(int j = 0; j < a; j++){
            c[j] = sc.nextInt();
        }
        
        int result = 0;
        for(int k = 0; k < a; k++){
            int g = v[k] - c[k];
            if(g > 0){
                result += g;
            }
        }
        
        System.out.println(result);
    }
} Main
import java.util.*;


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

        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        
        int[] v = new int[a];
        int[] c = new int[a];
        
        for(int i = 0; i < a; i++){
            v[i] = sc.nextInt();
        }
        
        for(int j = 0; j < a; j++){
            c[j] = sc.nextInt();
        }
        
        int result = 0;
        for(int k = 0; k < a; k++){
            int g = v[k] - c[k];
            if(g > 0){
                result += g;
            }
        }
        
        System.out.println(result);
    }
}