import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
			Scanner scan = new Scanner(System.in);
			int N = scan.nextInt();
			
			int[] V= new int[N];
			int[] C=new int[N];
			int sum=0;
			for(int i=0;i<N;i++){				
				V[i]=scan.nextInt();		
			}
			for(int i=0;i<N;i++){				
				C[i] = scan.nextInt();					
			}
			for(int i=0;i<N;i++){
				
				if(V[i]>C[i]){
					 sum += V[i]-C[i];
				}
			}
			System.out.println(sum);
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
			Scanner scan = new Scanner(System.in);
			int N = scan.nextInt();
			
			int[] V= new int[N];
			int[] C=new int[N];
			int sum=0;
			for(int i=0;i<N;i++){				
				V[i]=scan.nextInt();		
			}
			for(int i=0;i<N;i++){				
				C[i] = scan.nextInt();					
			}
			for(int i=0;i<N;i++){
				
				if(V[i]>C[i]){
					 sum += V[i]-C[i];
				}
			}
			System.out.println(sum);
	}

} Main public static void main(String[] args) {
		// TODO Auto-generated method stub
			Scanner scan = new Scanner(System.in);
			int N = scan.nextInt();
			
			int[] V= new int[N];
			int[] C=new int[N];
			int sum=0;
			for(int i=0;i<N;i++){				
				V[i]=scan.nextInt();		
			}
			for(int i=0;i<N;i++){				
				C[i] = scan.nextInt();					
			}
			for(int i=0;i<N;i++){
				
				if(V[i]>C[i]){
					 sum += V[i]-C[i];
				}
			}
			System.out.println(sum);
	} main {
		// TODO Auto-generated method stub
			Scanner scan = new Scanner(System.in);
			int N = scan.nextInt();
			
			int[] V= new int[N];
			int[] C=new int[N];
			int sum=0;
			for(int i=0;i<N;i++){				
				V[i]=scan.nextInt();		
			}
			for(int i=0;i<N;i++){				
				C[i] = scan.nextInt();					
			}
			for(int i=0;i<N;i++){
				
				if(V[i]>C[i]){
					 sum += V[i]-C[i];
				}
			}
			System.out.println(sum);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan int[] V= new int[N]; V new int[N] N int[] C=new int[N]; C new int[N] N int sum=0; sum 0 for(int i=0;i<N;i++){				
				V[i]=scan.nextInt();		
			} int i=0; int i=0; i 0 i<N i N i++ i++ i {				
				V[i]=scan.nextInt();		
			} {				
				V[i]=scan.nextInt();		
			} V[i]=scan.nextInt() V[i] V i scan.nextInt() scan.nextInt scan for(int i=0;i<N;i++){				
				C[i] = scan.nextInt();					
			} int i=0; int i=0; i 0 i<N i N i++ i++ i {				
				C[i] = scan.nextInt();					
			} {				
				C[i] = scan.nextInt();					
			} C[i] = scan.nextInt() C[i] C i scan.nextInt() scan.nextInt scan for(int i=0;i<N;i++){
				
				if(V[i]>C[i]){
					 sum += V[i]-C[i];
				}
			} int i=0; int i=0; i 0 i<N i N i++ i++ i {
				
				if(V[i]>C[i]){
					 sum += V[i]-C[i];
				}
			} {
				
				if(V[i]>C[i]){
					 sum += V[i]-C[i];
				}
			} if(V[i]>C[i]){
					 sum += V[i]-C[i];
				} V[i]>C[i] V[i] V i C[i] C i {
					 sum += V[i]-C[i];
				} sum += V[i]-C[i] sum V[i]-C[i] V[i] V i C[i] C 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) {
		// TODO Auto-generated method stub
			Scanner scan = new Scanner(System.in);
			int N = scan.nextInt();
			
			int[] V= new int[N];
			int[] C=new int[N];
			int sum=0;
			for(int i=0;i<N;i++){				
				V[i]=scan.nextInt();		
			}
			for(int i=0;i<N;i++){				
				C[i] = scan.nextInt();					
			}
			for(int i=0;i<N;i++){
				
				if(V[i]>C[i]){
					 sum += V[i]-C[i];
				}
			}
			System.out.println(sum);
	}

} public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
			Scanner scan = new Scanner(System.in);
			int N = scan.nextInt();
			
			int[] V= new int[N];
			int[] C=new int[N];
			int sum=0;
			for(int i=0;i<N;i++){				
				V[i]=scan.nextInt();		
			}
			for(int i=0;i<N;i++){				
				C[i] = scan.nextInt();					
			}
			for(int i=0;i<N;i++){
				
				if(V[i]>C[i]){
					 sum += V[i]-C[i];
				}
			}
			System.out.println(sum);
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
			Scanner scan = new Scanner(System.in);
			int N = scan.nextInt();
			
			int[] V= new int[N];
			int[] C=new int[N];
			int sum=0;
			for(int i=0;i<N;i++){				
				V[i]=scan.nextInt();		
			}
			for(int i=0;i<N;i++){				
				C[i] = scan.nextInt();					
			}
			for(int i=0;i<N;i++){
				
				if(V[i]>C[i]){
					 sum += V[i]-C[i];
				}
			}
			System.out.println(sum);
	}

}