import java.util.*;

public class Main {
  
  public int[] value;
  public int[] cost;
  
  public Main() {
  }
  
  private void getValue () {
    int total = 0;
    
    for (int i = 0; i < value.length; i++) {
      if (value[i] - cost[i] > 0 )
        total += value[i] - cost[i];
    }
    
    System.out.println(total);
  }
    
  public static void main(String[] args) {
    
    Scanner scan = new Scanner(System.in);
    
    Main obj = new Main();
    int size = scan.nextInt();
    obj.value = new int[size];
    obj.cost = new int[size];
    
    for (int i = 0; i < size; i ++) {
      obj.value[i] = scan.nextInt();
    }
    
    for (int i = 0; i < size; i ++) {
      obj.cost[i] = scan.nextInt();
    }
    obj.getValue();
    
  }
} import java.util.*; util.* java public class Main {
  
  public int[] value;
  public int[] cost;
  
  public Main() {
  }
  
  private void getValue () {
    int total = 0;
    
    for (int i = 0; i < value.length; i++) {
      if (value[i] - cost[i] > 0 )
        total += value[i] - cost[i];
    }
    
    System.out.println(total);
  }
    
  public static void main(String[] args) {
    
    Scanner scan = new Scanner(System.in);
    
    Main obj = new Main();
    int size = scan.nextInt();
    obj.value = new int[size];
    obj.cost = new int[size];
    
    for (int i = 0; i < size; i ++) {
      obj.value[i] = scan.nextInt();
    }
    
    for (int i = 0; i < size; i ++) {
      obj.cost[i] = scan.nextInt();
    }
    obj.getValue();
    
  }
} Main public int[] value; value public int[] cost; cost public Main() {
  } Main {
  } private void getValue () {
    int total = 0;
    
    for (int i = 0; i < value.length; i++) {
      if (value[i] - cost[i] > 0 )
        total += value[i] - cost[i];
    }
    
    System.out.println(total);
  } getValue {
    int total = 0;
    
    for (int i = 0; i < value.length; i++) {
      if (value[i] - cost[i] > 0 )
        total += value[i] - cost[i];
    }
    
    System.out.println(total);
  } int total = 0; total 0 for (int i = 0; i < value.length; i++) {
      if (value[i] - cost[i] > 0 )
        total += value[i] - cost[i];
    } int i = 0; int i = 0; i 0 i < value.length i value.length value value.length i++ i++ i {
      if (value[i] - cost[i] > 0 )
        total += value[i] - cost[i];
    } {
      if (value[i] - cost[i] > 0 )
        total += value[i] - cost[i];
    } if (value[i] - cost[i] > 0 )
        total += value[i] - cost[i]; value[i] - cost[i] > 0 value[i] - cost[i] value[i] value i cost[i] cost i 0 total += value[i] - cost[i] total value[i] - cost[i] value[i] value i cost[i] cost i System.out.println(total) System.out.println System.out System System.out total public static void main(String[] args) {
    
    Scanner scan = new Scanner(System.in);
    
    Main obj = new Main();
    int size = scan.nextInt();
    obj.value = new int[size];
    obj.cost = new int[size];
    
    for (int i = 0; i < size; i ++) {
      obj.value[i] = scan.nextInt();
    }
    
    for (int i = 0; i < size; i ++) {
      obj.cost[i] = scan.nextInt();
    }
    obj.getValue();
    
  } main {
    
    Scanner scan = new Scanner(System.in);
    
    Main obj = new Main();
    int size = scan.nextInt();
    obj.value = new int[size];
    obj.cost = new int[size];
    
    for (int i = 0; i < size; i ++) {
      obj.value[i] = scan.nextInt();
    }
    
    for (int i = 0; i < size; i ++) {
      obj.cost[i] = scan.nextInt();
    }
    obj.getValue();
    
  } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) Main obj = new Main(); obj new Main() int size = scan.nextInt(); size scan.nextInt() scan.nextInt scan obj.value = new int[size] obj.value obj obj.value new int[size] size obj.cost = new int[size] obj.cost obj obj.cost new int[size] size for (int i = 0; i < size; i ++) {
      obj.value[i] = scan.nextInt();
    } int i = 0; int i = 0; i 0 i < size i size i ++ i ++ i {
      obj.value[i] = scan.nextInt();
    } {
      obj.value[i] = scan.nextInt();
    } obj.value[i] = scan.nextInt() obj.value[i] obj.value obj obj.value i scan.nextInt() scan.nextInt scan for (int i = 0; i < size; i ++) {
      obj.cost[i] = scan.nextInt();
    } int i = 0; int i = 0; i 0 i < size i size i ++ i ++ i {
      obj.cost[i] = scan.nextInt();
    } {
      obj.cost[i] = scan.nextInt();
    } obj.cost[i] = scan.nextInt() obj.cost[i] obj.cost obj obj.cost i scan.nextInt() scan.nextInt scan obj.getValue() obj.getValue obj String[] args args public class Main {
  
  public int[] value;
  public int[] cost;
  
  public Main() {
  }
  
  private void getValue () {
    int total = 0;
    
    for (int i = 0; i < value.length; i++) {
      if (value[i] - cost[i] > 0 )
        total += value[i] - cost[i];
    }
    
    System.out.println(total);
  }
    
  public static void main(String[] args) {
    
    Scanner scan = new Scanner(System.in);
    
    Main obj = new Main();
    int size = scan.nextInt();
    obj.value = new int[size];
    obj.cost = new int[size];
    
    for (int i = 0; i < size; i ++) {
      obj.value[i] = scan.nextInt();
    }
    
    for (int i = 0; i < size; i ++) {
      obj.cost[i] = scan.nextInt();
    }
    obj.getValue();
    
  }
} public class Main {
  
  public int[] value;
  public int[] cost;
  
  public Main() {
  }
  
  private void getValue () {
    int total = 0;
    
    for (int i = 0; i < value.length; i++) {
      if (value[i] - cost[i] > 0 )
        total += value[i] - cost[i];
    }
    
    System.out.println(total);
  }
    
  public static void main(String[] args) {
    
    Scanner scan = new Scanner(System.in);
    
    Main obj = new Main();
    int size = scan.nextInt();
    obj.value = new int[size];
    obj.cost = new int[size];
    
    for (int i = 0; i < size; i ++) {
      obj.value[i] = scan.nextInt();
    }
    
    for (int i = 0; i < size; i ++) {
      obj.cost[i] = scan.nextInt();
    }
    obj.getValue();
    
  }
} Main
import java.util.*;

public class Main {
  
  public int[] value;
  public int[] cost;
  
  public Main() {
  }
  
  private void getValue () {
    int total = 0;
    
    for (int i = 0; i < value.length; i++) {
      if (value[i] - cost[i] > 0 )
        total += value[i] - cost[i];
    }
    
    System.out.println(total);
  }
    
  public static void main(String[] args) {
    
    Scanner scan = new Scanner(System.in);
    
    Main obj = new Main();
    int size = scan.nextInt();
    obj.value = new int[size];
    obj.cost = new int[size];
    
    for (int i = 0; i < size; i ++) {
      obj.value[i] = scan.nextInt();
    }
    
    for (int i = 0; i < size; i ++) {
      obj.cost[i] = scan.nextInt();
    }
    obj.getValue();
    
  }
}
