import java.util.Scanner;

public class Main {
  public static void main(String args[]){
      Scanner sc = new Scanner(System.in);
      int N = sc.nextInt();
    int sum = 0;
 
    
    int v[] = new int[N];
    int c[] = new int[N];
    
    
    for (int i = 1; i <= N; i++) {
  		v[i-1] = sc.nextInt();
	}
    
    for (int i = 1; i <= N; i++) {
  		c[i-1] = sc.nextInt();
	}
    
    for (int i = 1; i <= N; i++) {
      int rev = v[i-1] - c[i-1];
      if(rev > 0){
        sum = sum + rev;
      } else {
        sum = sum + 0;
      }
	}
    
      System.out.println(sum);

  }
} import java.util.Scanner; Scanner java.util public class Main {
  public static void main(String args[]){
      Scanner sc = new Scanner(System.in);
      int N = sc.nextInt();
    int sum = 0;
 
    
    int v[] = new int[N];
    int c[] = new int[N];
    
    
    for (int i = 1; i <= N; i++) {
  		v[i-1] = sc.nextInt();
	}
    
    for (int i = 1; i <= N; i++) {
  		c[i-1] = sc.nextInt();
	}
    
    for (int i = 1; i <= N; i++) {
      int rev = v[i-1] - c[i-1];
      if(rev > 0){
        sum = sum + rev;
      } else {
        sum = sum + 0;
      }
	}
    
      System.out.println(sum);

  }
} Main public static void main(String args[]){
      Scanner sc = new Scanner(System.in);
      int N = sc.nextInt();
    int sum = 0;
 
    
    int v[] = new int[N];
    int c[] = new int[N];
    
    
    for (int i = 1; i <= N; i++) {
  		v[i-1] = sc.nextInt();
	}
    
    for (int i = 1; i <= N; i++) {
  		c[i-1] = sc.nextInt();
	}
    
    for (int i = 1; i <= N; i++) {
      int rev = v[i-1] - c[i-1];
      if(rev > 0){
        sum = sum + rev;
      } else {
        sum = sum + 0;
      }
	}
    
      System.out.println(sum);

  } main {
      Scanner sc = new Scanner(System.in);
      int N = sc.nextInt();
    int sum = 0;
 
    
    int v[] = new int[N];
    int c[] = new int[N];
    
    
    for (int i = 1; i <= N; i++) {
  		v[i-1] = sc.nextInt();
	}
    
    for (int i = 1; i <= N; i++) {
  		c[i-1] = sc.nextInt();
	}
    
    for (int i = 1; i <= N; i++) {
      int rev = v[i-1] - c[i-1];
      if(rev > 0){
        sum = sum + rev;
      } else {
        sum = sum + 0;
      }
	}
    
      System.out.println(sum);

  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int sum = 0; sum 0 int v[] = new int[N]; v new int[N] N int c[] = new int[N]; c new int[N] N for (int i = 1; i <= N; i++) {
  		v[i-1] = sc.nextInt();
	} int i = 1; int i = 1; i 1 i <= N i N i++ i++ i {
  		v[i-1] = sc.nextInt();
	} {
  		v[i-1] = sc.nextInt();
	} v[i-1] = sc.nextInt() v[i-1] v i-1 i 1 sc.nextInt() sc.nextInt sc for (int i = 1; i <= N; i++) {
  		c[i-1] = sc.nextInt();
	} int i = 1; int i = 1; i 1 i <= N i N i++ i++ i {
  		c[i-1] = sc.nextInt();
	} {
  		c[i-1] = sc.nextInt();
	} c[i-1] = sc.nextInt() c[i-1] c i-1 i 1 sc.nextInt() sc.nextInt sc for (int i = 1; i <= N; i++) {
      int rev = v[i-1] - c[i-1];
      if(rev > 0){
        sum = sum + rev;
      } else {
        sum = sum + 0;
      }
	} int i = 1; int i = 1; i 1 i <= N i N i++ i++ i {
      int rev = v[i-1] - c[i-1];
      if(rev > 0){
        sum = sum + rev;
      } else {
        sum = sum + 0;
      }
	} {
      int rev = v[i-1] - c[i-1];
      if(rev > 0){
        sum = sum + rev;
      } else {
        sum = sum + 0;
      }
	} int rev = v[i-1] - c[i-1]; rev v[i-1] - c[i-1] v[i-1] v i-1 i 1 c[i-1] c i-1 i 1 if(rev > 0){
        sum = sum + rev;
      } else {
        sum = sum + 0;
      } rev > 0 rev 0 {
        sum = sum + rev;
      } sum = sum + rev sum sum + rev sum rev {
        sum = sum + 0;
      } sum = sum + 0 sum sum + 0 sum 0 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 = sc.nextInt();
    int sum = 0;
 
    
    int v[] = new int[N];
    int c[] = new int[N];
    
    
    for (int i = 1; i <= N; i++) {
  		v[i-1] = sc.nextInt();
	}
    
    for (int i = 1; i <= N; i++) {
  		c[i-1] = sc.nextInt();
	}
    
    for (int i = 1; i <= N; i++) {
      int rev = v[i-1] - c[i-1];
      if(rev > 0){
        sum = sum + rev;
      } else {
        sum = sum + 0;
      }
	}
    
      System.out.println(sum);

  }
} public class Main {
  public static void main(String args[]){
      Scanner sc = new Scanner(System.in);
      int N = sc.nextInt();
    int sum = 0;
 
    
    int v[] = new int[N];
    int c[] = new int[N];
    
    
    for (int i = 1; i <= N; i++) {
  		v[i-1] = sc.nextInt();
	}
    
    for (int i = 1; i <= N; i++) {
  		c[i-1] = sc.nextInt();
	}
    
    for (int i = 1; i <= N; i++) {
      int rev = v[i-1] - c[i-1];
      if(rev > 0){
        sum = sum + rev;
      } else {
        sum = sum + 0;
      }
	}
    
      System.out.println(sum);

  }
} Main
import java.util.Scanner;

public class Main {
  public static void main(String args[]){
      Scanner sc = new Scanner(System.in);
      int N = sc.nextInt();
    int sum = 0;
 
    
    int v[] = new int[N];
    int c[] = new int[N];
    
    
    for (int i = 1; i <= N; i++) {
  		v[i-1] = sc.nextInt();
	}
    
    for (int i = 1; i <= N; i++) {
  		c[i-1] = sc.nextInt();
	}
    
    for (int i = 1; i <= N; i++) {
      int rev = v[i-1] - c[i-1];
      if(rev > 0){
        sum = sum + rev;
      } else {
        sum = sum + 0;
      }
	}
    
      System.out.println(sum);

  }
}