import java.util.*;

public class Main {
  public static void main(String[] args ) throws Exception {
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int Nums1[]=new int[A];
    int Nums2[]=new int[A];
    int count=0;
    int Nums3[]=new int[A];
    for(int i=0;i<A;i++){
          Nums1[i]=sc.nextInt();
        
    }
    for(int i=0;i<A;i++){
          Nums2[i]=sc.nextInt();
        
    }
    for(int i=0;i<A;i++){
    	Nums3[i]=Nums1[i]-Nums2[i];
    }
    for(int i=0;i<A;i++){
    	if(Nums3[i]>0)	
     count+=Nums3[i];
    }
   	System.out.println(count);
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args ) throws Exception {
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int Nums1[]=new int[A];
    int Nums2[]=new int[A];
    int count=0;
    int Nums3[]=new int[A];
    for(int i=0;i<A;i++){
          Nums1[i]=sc.nextInt();
        
    }
    for(int i=0;i<A;i++){
          Nums2[i]=sc.nextInt();
        
    }
    for(int i=0;i<A;i++){
    	Nums3[i]=Nums1[i]-Nums2[i];
    }
    for(int i=0;i<A;i++){
    	if(Nums3[i]>0)	
     count+=Nums3[i];
    }
   	System.out.println(count);
  }
} Main public static void main(String[] args ) throws Exception {
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int Nums1[]=new int[A];
    int Nums2[]=new int[A];
    int count=0;
    int Nums3[]=new int[A];
    for(int i=0;i<A;i++){
          Nums1[i]=sc.nextInt();
        
    }
    for(int i=0;i<A;i++){
          Nums2[i]=sc.nextInt();
        
    }
    for(int i=0;i<A;i++){
    	Nums3[i]=Nums1[i]-Nums2[i];
    }
    for(int i=0;i<A;i++){
    	if(Nums3[i]>0)	
     count+=Nums3[i];
    }
   	System.out.println(count);
  } main {
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int Nums1[]=new int[A];
    int Nums2[]=new int[A];
    int count=0;
    int Nums3[]=new int[A];
    for(int i=0;i<A;i++){
          Nums1[i]=sc.nextInt();
        
    }
    for(int i=0;i<A;i++){
          Nums2[i]=sc.nextInt();
        
    }
    for(int i=0;i<A;i++){
    	Nums3[i]=Nums1[i]-Nums2[i];
    }
    for(int i=0;i<A;i++){
    	if(Nums3[i]>0)	
     count+=Nums3[i];
    }
   	System.out.println(count);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int A = sc.nextInt(); A sc.nextInt() sc.nextInt sc int Nums1[]=new int[A]; Nums1 new int[A] A int Nums2[]=new int[A]; Nums2 new int[A] A int count=0; count 0 int Nums3[]=new int[A]; Nums3 new int[A] A for(int i=0;i<A;i++){
          Nums1[i]=sc.nextInt();
        
    } int i=0; int i=0; i 0 i<A i A i++ i++ i {
          Nums1[i]=sc.nextInt();
        
    } {
          Nums1[i]=sc.nextInt();
        
    } Nums1[i]=sc.nextInt() Nums1[i] Nums1 i sc.nextInt() sc.nextInt sc for(int i=0;i<A;i++){
          Nums2[i]=sc.nextInt();
        
    } int i=0; int i=0; i 0 i<A i A i++ i++ i {
          Nums2[i]=sc.nextInt();
        
    } {
          Nums2[i]=sc.nextInt();
        
    } Nums2[i]=sc.nextInt() Nums2[i] Nums2 i sc.nextInt() sc.nextInt sc for(int i=0;i<A;i++){
    	Nums3[i]=Nums1[i]-Nums2[i];
    } int i=0; int i=0; i 0 i<A i A i++ i++ i {
    	Nums3[i]=Nums1[i]-Nums2[i];
    } {
    	Nums3[i]=Nums1[i]-Nums2[i];
    } Nums3[i]=Nums1[i]-Nums2[i] Nums3[i] Nums3 i Nums1[i]-Nums2[i] Nums1[i] Nums1 i Nums2[i] Nums2 i for(int i=0;i<A;i++){
    	if(Nums3[i]>0)	
     count+=Nums3[i];
    } int i=0; int i=0; i 0 i<A i A i++ i++ i {
    	if(Nums3[i]>0)	
     count+=Nums3[i];
    } {
    	if(Nums3[i]>0)	
     count+=Nums3[i];
    } if(Nums3[i]>0)	
     count+=Nums3[i]; Nums3[i]>0 Nums3[i] Nums3 i 0 count+=Nums3[i] count Nums3[i] Nums3 i System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {
  public static void main(String[] args ) throws Exception {
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int Nums1[]=new int[A];
    int Nums2[]=new int[A];
    int count=0;
    int Nums3[]=new int[A];
    for(int i=0;i<A;i++){
          Nums1[i]=sc.nextInt();
        
    }
    for(int i=0;i<A;i++){
          Nums2[i]=sc.nextInt();
        
    }
    for(int i=0;i<A;i++){
    	Nums3[i]=Nums1[i]-Nums2[i];
    }
    for(int i=0;i<A;i++){
    	if(Nums3[i]>0)	
     count+=Nums3[i];
    }
   	System.out.println(count);
  }
} public class Main {
  public static void main(String[] args ) throws Exception {
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int Nums1[]=new int[A];
    int Nums2[]=new int[A];
    int count=0;
    int Nums3[]=new int[A];
    for(int i=0;i<A;i++){
          Nums1[i]=sc.nextInt();
        
    }
    for(int i=0;i<A;i++){
          Nums2[i]=sc.nextInt();
        
    }
    for(int i=0;i<A;i++){
    	Nums3[i]=Nums1[i]-Nums2[i];
    }
    for(int i=0;i<A;i++){
    	if(Nums3[i]>0)	
     count+=Nums3[i];
    }
   	System.out.println(count);
  }
} Main
import java.util.*;

public class Main {
  public static void main(String[] args ) throws Exception {
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int Nums1[]=new int[A];
    int Nums2[]=new int[A];
    int count=0;
    int Nums3[]=new int[A];
    for(int i=0;i<A;i++){
          Nums1[i]=sc.nextInt();
        
    }
    for(int i=0;i<A;i++){
          Nums2[i]=sc.nextInt();
        
    }
    for(int i=0;i<A;i++){
    	Nums3[i]=Nums1[i]-Nums2[i];
    }
    for(int i=0;i<A;i++){
    	if(Nums3[i]>0)	
     count+=Nums3[i];
    }
   	System.out.println(count);
  }
}