import java.util.*;
 
class Main {
    public static void main(String[] args) {
      
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int sam[] = new int[A];
        int sam2 = 0;
        int sam3 = 0;

	  for(int i= 0;i<A;i++){
        sam[i] = sc.nextInt();
      }
	  for(int i= 0;i<A;i++){
        sam2 = sam[i]-sc.nextInt();
        if(sam2>0){
          sam3 += sam2;
        }
      }
      
		System.out.print(sam3);

    }
} import java.util.*; util.* java class Main {
    public static void main(String[] args) {
      
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int sam[] = new int[A];
        int sam2 = 0;
        int sam3 = 0;

	  for(int i= 0;i<A;i++){
        sam[i] = sc.nextInt();
      }
	  for(int i= 0;i<A;i++){
        sam2 = sam[i]-sc.nextInt();
        if(sam2>0){
          sam3 += sam2;
        }
      }
      
		System.out.print(sam3);

    }
} Main public static void main(String[] args) {
      
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int sam[] = new int[A];
        int sam2 = 0;
        int sam3 = 0;

	  for(int i= 0;i<A;i++){
        sam[i] = sc.nextInt();
      }
	  for(int i= 0;i<A;i++){
        sam2 = sam[i]-sc.nextInt();
        if(sam2>0){
          sam3 += sam2;
        }
      }
      
		System.out.print(sam3);

    } main {
      
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int sam[] = new int[A];
        int sam2 = 0;
        int sam3 = 0;

	  for(int i= 0;i<A;i++){
        sam[i] = sc.nextInt();
      }
	  for(int i= 0;i<A;i++){
        sam2 = sam[i]-sc.nextInt();
        if(sam2>0){
          sam3 += sam2;
        }
      }
      
		System.out.print(sam3);

    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int A = sc.nextInt(); A sc.nextInt() sc.nextInt sc int sam[] = new int[A]; sam new int[A] A int sam2 = 0; sam2 0 int sam3 = 0; sam3 0 for(int i= 0;i<A;i++){
        sam[i] = sc.nextInt();
      } int i= 0; int i= 0; i 0 i<A i A i++ i++ i {
        sam[i] = sc.nextInt();
      } {
        sam[i] = sc.nextInt();
      } sam[i] = sc.nextInt() sam[i] sam i sc.nextInt() sc.nextInt sc for(int i= 0;i<A;i++){
        sam2 = sam[i]-sc.nextInt();
        if(sam2>0){
          sam3 += sam2;
        }
      } int i= 0; int i= 0; i 0 i<A i A i++ i++ i {
        sam2 = sam[i]-sc.nextInt();
        if(sam2>0){
          sam3 += sam2;
        }
      } {
        sam2 = sam[i]-sc.nextInt();
        if(sam2>0){
          sam3 += sam2;
        }
      } sam2 = sam[i]-sc.nextInt() sam2 sam[i]-sc.nextInt() sam[i] sam i sc.nextInt() sc.nextInt sc if(sam2>0){
          sam3 += sam2;
        } sam2>0 sam2 0 {
          sam3 += sam2;
        } sam3 += sam2 sam3 sam2 System.out.print(sam3) System.out.print System.out System System.out sam3 String[] args args
import java.util.*;
 
class Main {
    public static void main(String[] args) {
      
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int sam[] = new int[A];
        int sam2 = 0;
        int sam3 = 0;

	  for(int i= 0;i<A;i++){
        sam[i] = sc.nextInt();
      }
	  for(int i= 0;i<A;i++){
        sam2 = sam[i]-sc.nextInt();
        if(sam2>0){
          sam3 += sam2;
        }
      }
      
		System.out.print(sam3);

    }
}