import java.util.*;
import java.lang.*;

class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
            int N = sc.nextInt();

            int[][] S = new int[2][N];

            for(int i = 0 ; i< N ; i++){
                S[0][i] = sc.nextInt();
            }
            
            for(int i = 0 ; i< N ; i++){
                S[1][i] = sc.nextInt();
            }
        sc.close();

        int value = 0 ;
        int cost = 0 ;
        for(int i = 0 ; i < N ; i++){
            if(S[0][i] - S[1][i] > 0){
                value += S[0][i];
                cost += S[1][i];
            }
        }
        System.out.println(value-cost);
    }
} import java.util.*; util.* java import java.lang.*; lang.* java class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
            int N = sc.nextInt();

            int[][] S = new int[2][N];

            for(int i = 0 ; i< N ; i++){
                S[0][i] = sc.nextInt();
            }
            
            for(int i = 0 ; i< N ; i++){
                S[1][i] = sc.nextInt();
            }
        sc.close();

        int value = 0 ;
        int cost = 0 ;
        for(int i = 0 ; i < N ; i++){
            if(S[0][i] - S[1][i] > 0){
                value += S[0][i];
                cost += S[1][i];
            }
        }
        System.out.println(value-cost);
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
            int N = sc.nextInt();

            int[][] S = new int[2][N];

            for(int i = 0 ; i< N ; i++){
                S[0][i] = sc.nextInt();
            }
            
            for(int i = 0 ; i< N ; i++){
                S[1][i] = sc.nextInt();
            }
        sc.close();

        int value = 0 ;
        int cost = 0 ;
        for(int i = 0 ; i < N ; i++){
            if(S[0][i] - S[1][i] > 0){
                value += S[0][i];
                cost += S[1][i];
            }
        }
        System.out.println(value-cost);
    } main {
        Scanner sc = new Scanner(System.in);
            int N = sc.nextInt();

            int[][] S = new int[2][N];

            for(int i = 0 ; i< N ; i++){
                S[0][i] = sc.nextInt();
            }
            
            for(int i = 0 ; i< N ; i++){
                S[1][i] = sc.nextInt();
            }
        sc.close();

        int value = 0 ;
        int cost = 0 ;
        for(int i = 0 ; i < N ; i++){
            if(S[0][i] - S[1][i] > 0){
                value += S[0][i];
                cost += S[1][i];
            }
        }
        System.out.println(value-cost);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int[][] S = new int[2][N]; S new int[2][N] 2 N for(int i = 0 ; i< N ; i++){
                S[0][i] = sc.nextInt();
            } int i = 0 ; int i = 0 ; i 0 i< N i N i++ i++ i {
                S[0][i] = sc.nextInt();
            } {
                S[0][i] = sc.nextInt();
            } S[0][i] = sc.nextInt() S[0][i] S[0] S 0 i sc.nextInt() sc.nextInt sc for(int i = 0 ; i< N ; i++){
                S[1][i] = sc.nextInt();
            } int i = 0 ; int i = 0 ; i 0 i< N i N i++ i++ i {
                S[1][i] = sc.nextInt();
            } {
                S[1][i] = sc.nextInt();
            } S[1][i] = sc.nextInt() S[1][i] S[1] S 1 i sc.nextInt() sc.nextInt sc sc.close() sc.close sc int value = 0 ; value 0 int cost = 0 ; cost 0 for(int i = 0 ; i < N ; i++){
            if(S[0][i] - S[1][i] > 0){
                value += S[0][i];
                cost += S[1][i];
            }
        } int i = 0 ; int i = 0 ; i 0 i < N i N i++ i++ i {
            if(S[0][i] - S[1][i] > 0){
                value += S[0][i];
                cost += S[1][i];
            }
        } {
            if(S[0][i] - S[1][i] > 0){
                value += S[0][i];
                cost += S[1][i];
            }
        } if(S[0][i] - S[1][i] > 0){
                value += S[0][i];
                cost += S[1][i];
            } S[0][i] - S[1][i] > 0 S[0][i] - S[1][i] S[0][i] S[0] S 0 i S[1][i] S[1] S 1 i 0 {
                value += S[0][i];
                cost += S[1][i];
            } value += S[0][i] value S[0][i] S[0] S 0 i cost += S[1][i] cost S[1][i] S[1] S 1 i System.out.println(value-cost) System.out.println System.out System System.out value-cost value cost String[] args args
import java.util.*;
import java.lang.*;

class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
            int N = sc.nextInt();

            int[][] S = new int[2][N];

            for(int i = 0 ; i< N ; i++){
                S[0][i] = sc.nextInt();
            }
            
            for(int i = 0 ; i< N ; i++){
                S[1][i] = sc.nextInt();
            }
        sc.close();

        int value = 0 ;
        int cost = 0 ;
        for(int i = 0 ; i < N ; i++){
            if(S[0][i] - S[1][i] > 0){
                value += S[0][i];
                cost += S[1][i];
            }
        }
        System.out.println(value-cost);
    }
}
