
import java.util.Scanner;


public class Main {

  public static void main(String [] args) {
    Scanner s = new Scanner(System.in);
    int n = s.nextInt();

    int[] vs = new int[n];
    int[] cs = new int[n];

    for (int i = 0; i < n; i ++) {
      vs[i] = s.nextInt();
    }

    int out = 0;

    for (int i = 0; i < n; i ++) {
      cs[i] = s.nextInt();
      if (vs[i] > cs[i])
        out += vs[i] - cs[i];
    }

    System.out.println(out);

  }

} import java.util.Scanner; Scanner java.util public class Main {

  public static void main(String [] args) {
    Scanner s = new Scanner(System.in);
    int n = s.nextInt();

    int[] vs = new int[n];
    int[] cs = new int[n];

    for (int i = 0; i < n; i ++) {
      vs[i] = s.nextInt();
    }

    int out = 0;

    for (int i = 0; i < n; i ++) {
      cs[i] = s.nextInt();
      if (vs[i] > cs[i])
        out += vs[i] - cs[i];
    }

    System.out.println(out);

  }

} Main public static void main(String [] args) {
    Scanner s = new Scanner(System.in);
    int n = s.nextInt();

    int[] vs = new int[n];
    int[] cs = new int[n];

    for (int i = 0; i < n; i ++) {
      vs[i] = s.nextInt();
    }

    int out = 0;

    for (int i = 0; i < n; i ++) {
      cs[i] = s.nextInt();
      if (vs[i] > cs[i])
        out += vs[i] - cs[i];
    }

    System.out.println(out);

  } main {
    Scanner s = new Scanner(System.in);
    int n = s.nextInt();

    int[] vs = new int[n];
    int[] cs = new int[n];

    for (int i = 0; i < n; i ++) {
      vs[i] = s.nextInt();
    }

    int out = 0;

    for (int i = 0; i < n; i ++) {
      cs[i] = s.nextInt();
      if (vs[i] > cs[i])
        out += vs[i] - cs[i];
    }

    System.out.println(out);

  } Scanner s = new Scanner(System.in); s new Scanner(System.in) int n = s.nextInt(); n s.nextInt() s.nextInt s int[] vs = new int[n]; vs new int[n] n int[] cs = new int[n]; cs new int[n] n for (int i = 0; i < n; i ++) {
      vs[i] = s.nextInt();
    } int i = 0; int i = 0; i 0 i < n i n i ++ i ++ i {
      vs[i] = s.nextInt();
    } {
      vs[i] = s.nextInt();
    } vs[i] = s.nextInt() vs[i] vs i s.nextInt() s.nextInt s int out = 0; out 0 for (int i = 0; i < n; i ++) {
      cs[i] = s.nextInt();
      if (vs[i] > cs[i])
        out += vs[i] - cs[i];
    } int i = 0; int i = 0; i 0 i < n i n i ++ i ++ i {
      cs[i] = s.nextInt();
      if (vs[i] > cs[i])
        out += vs[i] - cs[i];
    } {
      cs[i] = s.nextInt();
      if (vs[i] > cs[i])
        out += vs[i] - cs[i];
    } cs[i] = s.nextInt() cs[i] cs i s.nextInt() s.nextInt s if (vs[i] > cs[i])
        out += vs[i] - cs[i]; vs[i] > cs[i] vs[i] vs i cs[i] cs i out += vs[i] - cs[i] out vs[i] - cs[i] vs[i] vs i cs[i] cs i System.out.println(out) System.out.println System.out System System.out out String [] args args public class Main {

  public static void main(String [] args) {
    Scanner s = new Scanner(System.in);
    int n = s.nextInt();

    int[] vs = new int[n];
    int[] cs = new int[n];

    for (int i = 0; i < n; i ++) {
      vs[i] = s.nextInt();
    }

    int out = 0;

    for (int i = 0; i < n; i ++) {
      cs[i] = s.nextInt();
      if (vs[i] > cs[i])
        out += vs[i] - cs[i];
    }

    System.out.println(out);

  }

} public class Main {

  public static void main(String [] args) {
    Scanner s = new Scanner(System.in);
    int n = s.nextInt();

    int[] vs = new int[n];
    int[] cs = new int[n];

    for (int i = 0; i < n; i ++) {
      vs[i] = s.nextInt();
    }

    int out = 0;

    for (int i = 0; i < n; i ++) {
      cs[i] = s.nextInt();
      if (vs[i] > cs[i])
        out += vs[i] - cs[i];
    }

    System.out.println(out);

  }

} Main

import java.util.Scanner;


public class Main {

  public static void main(String [] args) {
    Scanner s = new Scanner(System.in);
    int n = s.nextInt();

    int[] vs = new int[n];
    int[] cs = new int[n];

    for (int i = 0; i < n; i ++) {
      vs[i] = s.nextInt();
    }

    int out = 0;

    for (int i = 0; i < n; i ++) {
      cs[i] = s.nextInt();
      if (vs[i] > cs[i])
        out += vs[i] - cs[i];
    }

    System.out.println(out);

  }

}
