import java.util.*;

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

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int i, number_of_jewelries, answer = 0;
    number_of_jewelries = Integer.parseInt(sc.next());
    int[] value = new int[number_of_jewelries];
    int[] cost = new int[number_of_jewelries];
    for(i = 0; i < number_of_jewelries; i++) {
      value[i] = Integer.parseInt(sc.next());
    }
    for(i = 0; i < number_of_jewelries; i++) {
      cost[i] = Integer.parseInt(sc.next());
    }
    for(i = 0; i < number_of_jewelries; i++) {
      if(value[i] - cost[i] > 0) answer += (value[i] - cost[i]);
    }
    System.out.println(answer);
  }
}
