import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
import java.lang.Math;

public class Main {  
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    int qty = Integer.parseInt(br.readLine());
    String[] value = br.readLine().split(" ");
    String [] cost = br.readLine().split(" ");
    int sum = 0;
    
    int[] tValue = new int[qty], tCost = new int[qty];
    for (int i = 0; i < qty; i++) {
      tValue[i] = Integer.parseInt(value[i]);
      tCost[i] = Integer.parseInt(cost[i]);
    }
    
    for (int i = 0; i < qty; i++) {
      int tmp = tValue[i] - tCost[i];
      if (tmp > 0) {
        sum += tmp;
      }
    }
    System.out.println(sum);
  }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.IOException; IOException java.io import java.lang.Math; Math java.lang public class Main {  
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    int qty = Integer.parseInt(br.readLine());
    String[] value = br.readLine().split(" ");
    String [] cost = br.readLine().split(" ");
    int sum = 0;
    
    int[] tValue = new int[qty], tCost = new int[qty];
    for (int i = 0; i < qty; i++) {
      tValue[i] = Integer.parseInt(value[i]);
      tCost[i] = Integer.parseInt(cost[i]);
    }
    
    for (int i = 0; i < qty; i++) {
      int tmp = tValue[i] - tCost[i];
      if (tmp > 0) {
        sum += tmp;
      }
    }
    System.out.println(sum);
  }
} Main public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    int qty = Integer.parseInt(br.readLine());
    String[] value = br.readLine().split(" ");
    String [] cost = br.readLine().split(" ");
    int sum = 0;
    
    int[] tValue = new int[qty], tCost = new int[qty];
    for (int i = 0; i < qty; i++) {
      tValue[i] = Integer.parseInt(value[i]);
      tCost[i] = Integer.parseInt(cost[i]);
    }
    
    for (int i = 0; i < qty; i++) {
      int tmp = tValue[i] - tCost[i];
      if (tmp > 0) {
        sum += tmp;
      }
    }
    System.out.println(sum);
  } main {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    int qty = Integer.parseInt(br.readLine());
    String[] value = br.readLine().split(" ");
    String [] cost = br.readLine().split(" ");
    int sum = 0;
    
    int[] tValue = new int[qty], tCost = new int[qty];
    for (int i = 0; i < qty; i++) {
      tValue[i] = Integer.parseInt(value[i]);
      tCost[i] = Integer.parseInt(cost[i]);
    }
    
    for (int i = 0; i < qty; i++) {
      int tmp = tValue[i] - tCost[i];
      if (tmp > 0) {
        sum += tmp;
      }
    }
    System.out.println(sum);
  } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int qty = Integer.parseInt(br.readLine()); qty Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br String[] value = br.readLine().split(" "); value br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " String [] cost = br.readLine().split(" "); cost br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int sum = 0; sum 0 int[] tValue = new int[qty] tValue new int[qty] qty tCost = new int[qty]; tCost new int[qty] qty for (int i = 0; i < qty; i++) {
      tValue[i] = Integer.parseInt(value[i]);
      tCost[i] = Integer.parseInt(cost[i]);
    } int i = 0; int i = 0; i 0 i < qty i qty i++ i++ i {
      tValue[i] = Integer.parseInt(value[i]);
      tCost[i] = Integer.parseInt(cost[i]);
    } {
      tValue[i] = Integer.parseInt(value[i]);
      tCost[i] = Integer.parseInt(cost[i]);
    } tValue[i] = Integer.parseInt(value[i]) tValue[i] tValue i Integer.parseInt(value[i]) Integer.parseInt Integer value[i] value i tCost[i] = Integer.parseInt(cost[i]) tCost[i] tCost i Integer.parseInt(cost[i]) Integer.parseInt Integer cost[i] cost i for (int i = 0; i < qty; i++) {
      int tmp = tValue[i] - tCost[i];
      if (tmp > 0) {
        sum += tmp;
      }
    } int i = 0; int i = 0; i 0 i < qty i qty i++ i++ i {
      int tmp = tValue[i] - tCost[i];
      if (tmp > 0) {
        sum += tmp;
      }
    } {
      int tmp = tValue[i] - tCost[i];
      if (tmp > 0) {
        sum += tmp;
      }
    } int tmp = tValue[i] - tCost[i]; tmp tValue[i] - tCost[i] tValue[i] tValue i tCost[i] tCost i if (tmp > 0) {
        sum += tmp;
      } tmp > 0 tmp 0 {
        sum += tmp;
      } sum += tmp sum tmp 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) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    int qty = Integer.parseInt(br.readLine());
    String[] value = br.readLine().split(" ");
    String [] cost = br.readLine().split(" ");
    int sum = 0;
    
    int[] tValue = new int[qty], tCost = new int[qty];
    for (int i = 0; i < qty; i++) {
      tValue[i] = Integer.parseInt(value[i]);
      tCost[i] = Integer.parseInt(cost[i]);
    }
    
    for (int i = 0; i < qty; i++) {
      int tmp = tValue[i] - tCost[i];
      if (tmp > 0) {
        sum += tmp;
      }
    }
    System.out.println(sum);
  }
} public class Main {  
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    int qty = Integer.parseInt(br.readLine());
    String[] value = br.readLine().split(" ");
    String [] cost = br.readLine().split(" ");
    int sum = 0;
    
    int[] tValue = new int[qty], tCost = new int[qty];
    for (int i = 0; i < qty; i++) {
      tValue[i] = Integer.parseInt(value[i]);
      tCost[i] = Integer.parseInt(cost[i]);
    }
    
    for (int i = 0; i < qty; i++) {
      int tmp = tValue[i] - tCost[i];
      if (tmp > 0) {
        sum += tmp;
      }
    }
    System.out.println(sum);
  }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
import java.lang.Math;

public class Main {  
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    int qty = Integer.parseInt(br.readLine());
    String[] value = br.readLine().split(" ");
    String [] cost = br.readLine().split(" ");
    int sum = 0;
    
    int[] tValue = new int[qty], tCost = new int[qty];
    for (int i = 0; i < qty; i++) {
      tValue[i] = Integer.parseInt(value[i]);
      tCost[i] = Integer.parseInt(cost[i]);
    }
    
    for (int i = 0; i < qty; i++) {
      int tmp = tValue[i] - tCost[i];
      if (tmp > 0) {
        sum += tmp;
      }
    }
    System.out.println(sum);
  }
}