import java.util.*;

public class Main {

  public static void main (String[] args) {

    Scanner sc = new Scanner(System.in);

    int N = sc.nextInt();
    int[] V = new int[N];
    int[] C = new int[N];

    for (int i = 0; i < N; i++) {
      V[i] = sc.nextInt();
    }

    for (int i = 0; i < N; i++) {
      C[i] = sc.nextInt();
    }

    sc.close();

    int[] R = new int[N];

    for (int i = 0; i < N; i++) {
      R[i] = V[i] - C[i];
    }

    int sum = 0;

    for (int i = 0; i < N; i++) {
      if (0 < R[i]) {
        sum += R[i];
      }
    }

    System.out.println(sum);

  }

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

  public static void main (String[] args) {

    Scanner sc = new Scanner(System.in);

    int N = sc.nextInt();
    int[] V = new int[N];
    int[] C = new int[N];

    for (int i = 0; i < N; i++) {
      V[i] = sc.nextInt();
    }

    for (int i = 0; i < N; i++) {
      C[i] = sc.nextInt();
    }

    sc.close();

    int[] R = new int[N];

    for (int i = 0; i < N; i++) {
      R[i] = V[i] - C[i];
    }

    int sum = 0;

    for (int i = 0; i < N; i++) {
      if (0 < R[i]) {
        sum += R[i];
      }
    }

    System.out.println(sum);

  }

} Main public static void main (String[] args) {

    Scanner sc = new Scanner(System.in);

    int N = sc.nextInt();
    int[] V = new int[N];
    int[] C = new int[N];

    for (int i = 0; i < N; i++) {
      V[i] = sc.nextInt();
    }

    for (int i = 0; i < N; i++) {
      C[i] = sc.nextInt();
    }

    sc.close();

    int[] R = new int[N];

    for (int i = 0; i < N; i++) {
      R[i] = V[i] - C[i];
    }

    int sum = 0;

    for (int i = 0; i < N; i++) {
      if (0 < R[i]) {
        sum += R[i];
      }
    }

    System.out.println(sum);

  } main {

    Scanner sc = new Scanner(System.in);

    int N = sc.nextInt();
    int[] V = new int[N];
    int[] C = new int[N];

    for (int i = 0; i < N; i++) {
      V[i] = sc.nextInt();
    }

    for (int i = 0; i < N; i++) {
      C[i] = sc.nextInt();
    }

    sc.close();

    int[] R = new int[N];

    for (int i = 0; i < N; i++) {
      R[i] = V[i] - C[i];
    }

    int sum = 0;

    for (int i = 0; i < N; i++) {
      if (0 < R[i]) {
        sum += R[i];
      }
    }

    System.out.println(sum);

  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int[] V = new int[N]; V new int[N] N int[] C = new int[N]; C new int[N] N for (int i = 0; i < N; i++) {
      V[i] = sc.nextInt();
    } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
      V[i] = sc.nextInt();
    } {
      V[i] = sc.nextInt();
    } V[i] = sc.nextInt() V[i] V i sc.nextInt() sc.nextInt sc for (int i = 0; i < N; i++) {
      C[i] = sc.nextInt();
    } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
      C[i] = sc.nextInt();
    } {
      C[i] = sc.nextInt();
    } C[i] = sc.nextInt() C[i] C i sc.nextInt() sc.nextInt sc sc.close() sc.close sc int[] R = new int[N]; R new int[N] N for (int i = 0; i < N; i++) {
      R[i] = V[i] - C[i];
    } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
      R[i] = V[i] - C[i];
    } {
      R[i] = V[i] - C[i];
    } R[i] = V[i] - C[i] R[i] R i V[i] - C[i] V[i] V i C[i] C i int sum = 0; sum 0 for (int i = 0; i < N; i++) {
      if (0 < R[i]) {
        sum += R[i];
      }
    } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
      if (0 < R[i]) {
        sum += R[i];
      }
    } {
      if (0 < R[i]) {
        sum += R[i];
      }
    } if (0 < R[i]) {
        sum += R[i];
      } 0 < R[i] 0 R[i] R i {
        sum += R[i];
      } sum += R[i] sum R[i] R i 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) {

    Scanner sc = new Scanner(System.in);

    int N = sc.nextInt();
    int[] V = new int[N];
    int[] C = new int[N];

    for (int i = 0; i < N; i++) {
      V[i] = sc.nextInt();
    }

    for (int i = 0; i < N; i++) {
      C[i] = sc.nextInt();
    }

    sc.close();

    int[] R = new int[N];

    for (int i = 0; i < N; i++) {
      R[i] = V[i] - C[i];
    }

    int sum = 0;

    for (int i = 0; i < N; i++) {
      if (0 < R[i]) {
        sum += R[i];
      }
    }

    System.out.println(sum);

  }

} public class Main {

  public static void main (String[] args) {

    Scanner sc = new Scanner(System.in);

    int N = sc.nextInt();
    int[] V = new int[N];
    int[] C = new int[N];

    for (int i = 0; i < N; i++) {
      V[i] = sc.nextInt();
    }

    for (int i = 0; i < N; i++) {
      C[i] = sc.nextInt();
    }

    sc.close();

    int[] R = new int[N];

    for (int i = 0; i < N; i++) {
      R[i] = V[i] - C[i];
    }

    int sum = 0;

    for (int i = 0; i < N; i++) {
      if (0 < R[i]) {
        sum += R[i];
      }
    }

    System.out.println(sum);

  }

} Main
import java.util.*;

public class Main {

  public static void main (String[] args) {

    Scanner sc = new Scanner(System.in);

    int N = sc.nextInt();
    int[] V = new int[N];
    int[] C = new int[N];

    for (int i = 0; i < N; i++) {
      V[i] = sc.nextInt();
    }

    for (int i = 0; i < N; i++) {
      C[i] = sc.nextInt();
    }

    sc.close();

    int[] R = new int[N];

    for (int i = 0; i < N; i++) {
      R[i] = V[i] - C[i];
    }

    int sum = 0;

    for (int i = 0; i < N; i++) {
      if (0 < R[i]) {
        sum += R[i];
      }
    }

    System.out.println(sum);

  }

}