import java.util.*;

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