import java.util.*;
import java.io.*;

public class Main{
    public static void main(String[] args)throws IOException{
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int[][] ary=new int[3][n];
        for(int i=0;i<2;i++){
            for(int j=0;j<n;j++){
                ary[i][j]=sc.nextInt();
            }
        }
        sc.close();
        int gt=0;
        for(int i=0;i<n;i++){
            if(ary[0][i]-ary[1][i]>0){
                gt+=ary[0][i]-ary[1][i];
            }
        }
        System.out.println(gt+"\n");
    }
} import java.util.*; util.* java import java.io.*; io.* java public class Main{
    public static void main(String[] args)throws IOException{
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int[][] ary=new int[3][n];
        for(int i=0;i<2;i++){
            for(int j=0;j<n;j++){
                ary[i][j]=sc.nextInt();
            }
        }
        sc.close();
        int gt=0;
        for(int i=0;i<n;i++){
            if(ary[0][i]-ary[1][i]>0){
                gt+=ary[0][i]-ary[1][i];
            }
        }
        System.out.println(gt+"\n");
    }
} Main public static void main(String[] args)throws IOException{
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int[][] ary=new int[3][n];
        for(int i=0;i<2;i++){
            for(int j=0;j<n;j++){
                ary[i][j]=sc.nextInt();
            }
        }
        sc.close();
        int gt=0;
        for(int i=0;i<n;i++){
            if(ary[0][i]-ary[1][i]>0){
                gt+=ary[0][i]-ary[1][i];
            }
        }
        System.out.println(gt+"\n");
    } main {
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int[][] ary=new int[3][n];
        for(int i=0;i<2;i++){
            for(int j=0;j<n;j++){
                ary[i][j]=sc.nextInt();
            }
        }
        sc.close();
        int gt=0;
        for(int i=0;i<n;i++){
            if(ary[0][i]-ary[1][i]>0){
                gt+=ary[0][i]-ary[1][i];
            }
        }
        System.out.println(gt+"\n");
    } Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int n=sc.nextInt(); n sc.nextInt() sc.nextInt sc int[][] ary=new int[3][n]; ary new int[3][n] 3 n for(int i=0;i<2;i++){
            for(int j=0;j<n;j++){
                ary[i][j]=sc.nextInt();
            }
        } int i=0; int i=0; i 0 i<2 i 2 i++ i++ i {
            for(int j=0;j<n;j++){
                ary[i][j]=sc.nextInt();
            }
        } {
            for(int j=0;j<n;j++){
                ary[i][j]=sc.nextInt();
            }
        } for(int j=0;j<n;j++){
                ary[i][j]=sc.nextInt();
            } int j=0; int j=0; j 0 j<n j n j++ j++ j {
                ary[i][j]=sc.nextInt();
            } {
                ary[i][j]=sc.nextInt();
            } ary[i][j]=sc.nextInt() ary[i][j] ary[i] ary i j sc.nextInt() sc.nextInt sc sc.close() sc.close sc int gt=0; gt 0 for(int i=0;i<n;i++){
            if(ary[0][i]-ary[1][i]>0){
                gt+=ary[0][i]-ary[1][i];
            }
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            if(ary[0][i]-ary[1][i]>0){
                gt+=ary[0][i]-ary[1][i];
            }
        } {
            if(ary[0][i]-ary[1][i]>0){
                gt+=ary[0][i]-ary[1][i];
            }
        } if(ary[0][i]-ary[1][i]>0){
                gt+=ary[0][i]-ary[1][i];
            } ary[0][i]-ary[1][i]>0 ary[0][i]-ary[1][i] ary[0][i] ary[0] ary 0 i ary[1][i] ary[1] ary 1 i 0 {
                gt+=ary[0][i]-ary[1][i];
            } gt+=ary[0][i]-ary[1][i] gt ary[0][i]-ary[1][i] ary[0][i] ary[0] ary 0 i ary[1][i] ary[1] ary 1 i System.out.println(gt+"\n") System.out.println System.out System System.out gt+"\n" gt "\n" String[] args args public class Main{
    public static void main(String[] args)throws IOException{
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int[][] ary=new int[3][n];
        for(int i=0;i<2;i++){
            for(int j=0;j<n;j++){
                ary[i][j]=sc.nextInt();
            }
        }
        sc.close();
        int gt=0;
        for(int i=0;i<n;i++){
            if(ary[0][i]-ary[1][i]>0){
                gt+=ary[0][i]-ary[1][i];
            }
        }
        System.out.println(gt+"\n");
    }
} public class Main{
    public static void main(String[] args)throws IOException{
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int[][] ary=new int[3][n];
        for(int i=0;i<2;i++){
            for(int j=0;j<n;j++){
                ary[i][j]=sc.nextInt();
            }
        }
        sc.close();
        int gt=0;
        for(int i=0;i<n;i++){
            if(ary[0][i]-ary[1][i]>0){
                gt+=ary[0][i]-ary[1][i];
            }
        }
        System.out.println(gt+"\n");
    }
} Main
import java.util.*;
import java.io.*;

public class Main{
    public static void main(String[] args)throws IOException{
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int[][] ary=new int[3][n];
        for(int i=0;i<2;i++){
            for(int j=0;j<n;j++){
                ary[i][j]=sc.nextInt();
            }
        }
        sc.close();
        int gt=0;
        for(int i=0;i<n;i++){
            if(ary[0][i]-ary[1][i]>0){
                gt+=ary[0][i]-ary[1][i];
            }
        }
        System.out.println(gt+"\n");
    }
}