import java.io.InputStream;
import java.io.PrintStream;
import java.util.Scanner;

public class Main {

  public static void main(String[] args) {
    resolve(System.in, System.out);
  }

  static void resolve(InputStream is, PrintStream pw) {
    Scanner sc = new Scanner(is);
    int n = Integer.parseInt(sc.next());
    int resaleGain = 0;
    sc.nextLine();
    String[] values = sc.nextLine().split(" ");
    String[] costs = sc.nextLine().split(" ");
    for (int i = 0; i < n; i++) {
      int v = Integer.parseInt(values[i]);
      int c = Integer.parseInt(costs[i]);
      if (v - c > 0) {
        resaleGain += v - c;
      }
    }
    pw.println(resaleGain);
  }
} import java.io.InputStream; InputStream java.io import java.io.PrintStream; PrintStream java.io import java.util.Scanner; Scanner java.util public class Main {

  public static void main(String[] args) {
    resolve(System.in, System.out);
  }

  static void resolve(InputStream is, PrintStream pw) {
    Scanner sc = new Scanner(is);
    int n = Integer.parseInt(sc.next());
    int resaleGain = 0;
    sc.nextLine();
    String[] values = sc.nextLine().split(" ");
    String[] costs = sc.nextLine().split(" ");
    for (int i = 0; i < n; i++) {
      int v = Integer.parseInt(values[i]);
      int c = Integer.parseInt(costs[i]);
      if (v - c > 0) {
        resaleGain += v - c;
      }
    }
    pw.println(resaleGain);
  }
} Main public static void main(String[] args) {
    resolve(System.in, System.out);
  } main {
    resolve(System.in, System.out);
  } resolve(System.in, System.out) resolve System.in System System.in System.out System System.out String[] args args static void resolve(InputStream is, PrintStream pw) {
    Scanner sc = new Scanner(is);
    int n = Integer.parseInt(sc.next());
    int resaleGain = 0;
    sc.nextLine();
    String[] values = sc.nextLine().split(" ");
    String[] costs = sc.nextLine().split(" ");
    for (int i = 0; i < n; i++) {
      int v = Integer.parseInt(values[i]);
      int c = Integer.parseInt(costs[i]);
      if (v - c > 0) {
        resaleGain += v - c;
      }
    }
    pw.println(resaleGain);
  } resolve {
    Scanner sc = new Scanner(is);
    int n = Integer.parseInt(sc.next());
    int resaleGain = 0;
    sc.nextLine();
    String[] values = sc.nextLine().split(" ");
    String[] costs = sc.nextLine().split(" ");
    for (int i = 0; i < n; i++) {
      int v = Integer.parseInt(values[i]);
      int c = Integer.parseInt(costs[i]);
      if (v - c > 0) {
        resaleGain += v - c;
      }
    }
    pw.println(resaleGain);
  } Scanner sc = new Scanner(is); sc new Scanner(is) int n = Integer.parseInt(sc.next()); n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int resaleGain = 0; resaleGain 0 sc.nextLine() sc.nextLine sc String[] values = sc.nextLine().split(" "); values sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " String[] costs = sc.nextLine().split(" "); costs sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " for (int i = 0; i < n; i++) {
      int v = Integer.parseInt(values[i]);
      int c = Integer.parseInt(costs[i]);
      if (v - c > 0) {
        resaleGain += v - c;
      }
    } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
      int v = Integer.parseInt(values[i]);
      int c = Integer.parseInt(costs[i]);
      if (v - c > 0) {
        resaleGain += v - c;
      }
    } {
      int v = Integer.parseInt(values[i]);
      int c = Integer.parseInt(costs[i]);
      if (v - c > 0) {
        resaleGain += v - c;
      }
    } int v = Integer.parseInt(values[i]); v Integer.parseInt(values[i]) Integer.parseInt Integer values[i] values i int c = Integer.parseInt(costs[i]); c Integer.parseInt(costs[i]) Integer.parseInt Integer costs[i] costs i if (v - c > 0) {
        resaleGain += v - c;
      } v - c > 0 v - c v c 0 {
        resaleGain += v - c;
      } resaleGain += v - c resaleGain v - c v c pw.println(resaleGain) pw.println pw resaleGain InputStream is is PrintStream pw pw public class Main {

  public static void main(String[] args) {
    resolve(System.in, System.out);
  }

  static void resolve(InputStream is, PrintStream pw) {
    Scanner sc = new Scanner(is);
    int n = Integer.parseInt(sc.next());
    int resaleGain = 0;
    sc.nextLine();
    String[] values = sc.nextLine().split(" ");
    String[] costs = sc.nextLine().split(" ");
    for (int i = 0; i < n; i++) {
      int v = Integer.parseInt(values[i]);
      int c = Integer.parseInt(costs[i]);
      if (v - c > 0) {
        resaleGain += v - c;
      }
    }
    pw.println(resaleGain);
  }
} public class Main {

  public static void main(String[] args) {
    resolve(System.in, System.out);
  }

  static void resolve(InputStream is, PrintStream pw) {
    Scanner sc = new Scanner(is);
    int n = Integer.parseInt(sc.next());
    int resaleGain = 0;
    sc.nextLine();
    String[] values = sc.nextLine().split(" ");
    String[] costs = sc.nextLine().split(" ");
    for (int i = 0; i < n; i++) {
      int v = Integer.parseInt(values[i]);
      int c = Integer.parseInt(costs[i]);
      if (v - c > 0) {
        resaleGain += v - c;
      }
    }
    pw.println(resaleGain);
  }
} Main
import java.io.InputStream;
import java.io.PrintStream;
import java.util.Scanner;

public class Main {

  public static void main(String[] args) {
    resolve(System.in, System.out);
  }

  static void resolve(InputStream is, PrintStream pw) {
    Scanner sc = new Scanner(is);
    int n = Integer.parseInt(sc.next());
    int resaleGain = 0;
    sc.nextLine();
    String[] values = sc.nextLine().split(" ");
    String[] costs = sc.nextLine().split(" ");
    for (int i = 0; i < n; i++) {
      int v = Integer.parseInt(values[i]);
      int c = Integer.parseInt(costs[i]);
      if (v - c > 0) {
        resaleGain += v - c;
      }
    }
    pw.println(resaleGain);
  }
}
