import java.util.*;

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

        int X = 0;
        int Y = 0;
        

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

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

        for(int i = 0;i < N;i++){
            if(jew[i] < val[i]){
                jew[i] = 0;
                val[i] = 0;
            }
            X += jew[i];
            Y += val[i];
        }

        int ans = X-Y;
        System.out.println(ans);
    }
} import java.util.*; util.* java class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] jew = new int[N];
        int[] val = new int[N];

        int X = 0;
        int Y = 0;
        

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

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

        for(int i = 0;i < N;i++){
            if(jew[i] < val[i]){
                jew[i] = 0;
                val[i] = 0;
            }
            X += jew[i];
            Y += val[i];
        }

        int ans = X-Y;
        System.out.println(ans);
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] jew = new int[N];
        int[] val = new int[N];

        int X = 0;
        int Y = 0;
        

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

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

        for(int i = 0;i < N;i++){
            if(jew[i] < val[i]){
                jew[i] = 0;
                val[i] = 0;
            }
            X += jew[i];
            Y += val[i];
        }

        int ans = X-Y;
        System.out.println(ans);
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] jew = new int[N];
        int[] val = new int[N];

        int X = 0;
        int Y = 0;
        

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

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

        for(int i = 0;i < N;i++){
            if(jew[i] < val[i]){
                jew[i] = 0;
                val[i] = 0;
            }
            X += jew[i];
            Y += val[i];
        }

        int ans = X-Y;
        System.out.println(ans);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int[] jew = new int[N]; jew new int[N] N int[] val = new int[N]; val new int[N] N int X = 0; X 0 int Y = 0; Y 0 for(int i = 0;i < N;i++){
            jew[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            jew[i] = sc.nextInt();
        } {
            jew[i] = sc.nextInt();
        } jew[i] = sc.nextInt() jew[i] jew i sc.nextInt() sc.nextInt sc for(int i = 0;i < N ;i++){
            val[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            val[i] = sc.nextInt();
        } {
            val[i] = sc.nextInt();
        } val[i] = sc.nextInt() val[i] val i sc.nextInt() sc.nextInt sc for(int i = 0;i < N;i++){
            if(jew[i] < val[i]){
                jew[i] = 0;
                val[i] = 0;
            }
            X += jew[i];
            Y += val[i];
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            if(jew[i] < val[i]){
                jew[i] = 0;
                val[i] = 0;
            }
            X += jew[i];
            Y += val[i];
        } {
            if(jew[i] < val[i]){
                jew[i] = 0;
                val[i] = 0;
            }
            X += jew[i];
            Y += val[i];
        } if(jew[i] < val[i]){
                jew[i] = 0;
                val[i] = 0;
            } jew[i] < val[i] jew[i] jew i val[i] val i {
                jew[i] = 0;
                val[i] = 0;
            } jew[i] = 0 jew[i] jew i 0 val[i] = 0 val[i] val i 0 X += jew[i] X jew[i] jew i Y += val[i] Y val[i] val i int ans = X-Y; ans X-Y X Y System.out.println(ans) System.out.println System.out System System.out ans String[] args args
import java.util.*;

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

        int X = 0;
        int Y = 0;
        

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

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

        for(int i = 0;i < N;i++){
            if(jew[i] < val[i]){
                jew[i] = 0;
                val[i] = 0;
            }
            X += jew[i];
            Y += val[i];
        }

        int ans = X-Y;
        System.out.println(ans);
    }
}