import java.util.*;
public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);

    int N = sc.nextInt();
    
    int[] value;
    value = new int[N];
    for( int i = 0 ; i < N ; i++ ){
      value[i] = sc.nextInt();
    }
    
    int[] cost;
    cost = new int[N];
    for( int i = 0 ; i < N ; i++ ){
      cost[i] = sc.nextInt();
    }
    
    int max = 0;
    for( int i = 0 ; i < N ; i++ ){
      if ( value[i] > cost[i] ){
        max += value[i] - cost[i] ;
      }
    }
    System.out.println(max);
    }
  } import java.util.*; util.* java public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);

    int N = sc.nextInt();
    
    int[] value;
    value = new int[N];
    for( int i = 0 ; i < N ; i++ ){
      value[i] = sc.nextInt();
    }
    
    int[] cost;
    cost = new int[N];
    for( int i = 0 ; i < N ; i++ ){
      cost[i] = sc.nextInt();
    }
    
    int max = 0;
    for( int i = 0 ; i < N ; i++ ){
      if ( value[i] > cost[i] ){
        max += value[i] - cost[i] ;
      }
    }
    System.out.println(max);
    }
  } Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);

    int N = sc.nextInt();
    
    int[] value;
    value = new int[N];
    for( int i = 0 ; i < N ; i++ ){
      value[i] = sc.nextInt();
    }
    
    int[] cost;
    cost = new int[N];
    for( int i = 0 ; i < N ; i++ ){
      cost[i] = sc.nextInt();
    }
    
    int max = 0;
    for( int i = 0 ; i < N ; i++ ){
      if ( value[i] > cost[i] ){
        max += value[i] - cost[i] ;
      }
    }
    System.out.println(max);
    } main {
    Scanner sc = new Scanner(System.in);

    int N = sc.nextInt();
    
    int[] value;
    value = new int[N];
    for( int i = 0 ; i < N ; i++ ){
      value[i] = sc.nextInt();
    }
    
    int[] cost;
    cost = new int[N];
    for( int i = 0 ; i < N ; i++ ){
      cost[i] = sc.nextInt();
    }
    
    int max = 0;
    for( int i = 0 ; i < N ; i++ ){
      if ( value[i] > cost[i] ){
        max += value[i] - cost[i] ;
      }
    }
    System.out.println(max);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int[] value; value value = new int[N] value new int[N] N for( int i = 0 ; i < N ; i++ ){
      value[i] = sc.nextInt();
    } int i = 0 ; int i = 0 ; i 0 i < N i N i++ i++ i {
      value[i] = sc.nextInt();
    } {
      value[i] = sc.nextInt();
    } value[i] = sc.nextInt() value[i] value i sc.nextInt() sc.nextInt sc int[] cost; cost cost = new int[N] cost new int[N] N for( int i = 0 ; i < N ; i++ ){
      cost[i] = sc.nextInt();
    } int i = 0 ; int i = 0 ; i 0 i < N i N i++ i++ i {
      cost[i] = sc.nextInt();
    } {
      cost[i] = sc.nextInt();
    } cost[i] = sc.nextInt() cost[i] cost i sc.nextInt() sc.nextInt sc int max = 0; max 0 for( int i = 0 ; i < N ; i++ ){
      if ( value[i] > cost[i] ){
        max += value[i] - cost[i] ;
      }
    } int i = 0 ; int i = 0 ; i 0 i < N i N i++ i++ i {
      if ( value[i] > cost[i] ){
        max += value[i] - cost[i] ;
      }
    } {
      if ( value[i] > cost[i] ){
        max += value[i] - cost[i] ;
      }
    } if ( value[i] > cost[i] ){
        max += value[i] - cost[i] ;
      } value[i] > cost[i] value[i] value i cost[i] cost i {
        max += value[i] - cost[i] ;
      } max += value[i] - cost[i] max value[i] - cost[i] value[i] value i cost[i] cost i System.out.println(max) System.out.println System.out System System.out max String[] args args public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);

    int N = sc.nextInt();
    
    int[] value;
    value = new int[N];
    for( int i = 0 ; i < N ; i++ ){
      value[i] = sc.nextInt();
    }
    
    int[] cost;
    cost = new int[N];
    for( int i = 0 ; i < N ; i++ ){
      cost[i] = sc.nextInt();
    }
    
    int max = 0;
    for( int i = 0 ; i < N ; i++ ){
      if ( value[i] > cost[i] ){
        max += value[i] - cost[i] ;
      }
    }
    System.out.println(max);
    }
  } public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);

    int N = sc.nextInt();
    
    int[] value;
    value = new int[N];
    for( int i = 0 ; i < N ; i++ ){
      value[i] = sc.nextInt();
    }
    
    int[] cost;
    cost = new int[N];
    for( int i = 0 ; i < N ; i++ ){
      cost[i] = sc.nextInt();
    }
    
    int max = 0;
    for( int i = 0 ; i < N ; i++ ){
      if ( value[i] > cost[i] ){
        max += value[i] - cost[i] ;
      }
    }
    System.out.println(max);
    }
  } Main
import java.util.*;
public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);

    int N = sc.nextInt();
    
    int[] value;
    value = new int[N];
    for( int i = 0 ; i < N ; i++ ){
      value[i] = sc.nextInt();
    }
    
    int[] cost;
    cost = new int[N];
    for( int i = 0 ; i < N ; i++ ){
      cost[i] = sc.nextInt();
    }
    
    int max = 0;
    for( int i = 0 ; i < N ; i++ ){
      if ( value[i] > cost[i] ){
        max += value[i] - cost[i] ;
      }
    }
    System.out.println(max);
    }
  }
