import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);

    int count = sc.nextInt();

    int[] v = new int[count];
    int[] c = new int[count];

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

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

    int result = 0;
    for (int i = 0; i < count; i++) {
      if (v[i] > c[i]) {
        result += v[i] - c[i];
      }
    }

    System.out.println(result);
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);

    int count = sc.nextInt();

    int[] v = new int[count];
    int[] c = new int[count];

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

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

    int result = 0;
    for (int i = 0; i < count; i++) {
      if (v[i] > c[i]) {
        result += v[i] - c[i];
      }
    }

    System.out.println(result);
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);

    int count = sc.nextInt();

    int[] v = new int[count];
    int[] c = new int[count];

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

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

    int result = 0;
    for (int i = 0; i < count; i++) {
      if (v[i] > c[i]) {
        result += v[i] - c[i];
      }
    }

    System.out.println(result);
  } main {
    Scanner sc = new Scanner(System.in);

    int count = sc.nextInt();

    int[] v = new int[count];
    int[] c = new int[count];

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

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

    int result = 0;
    for (int i = 0; i < count; i++) {
      if (v[i] > c[i]) {
        result += v[i] - c[i];
      }
    }

    System.out.println(result);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int count = sc.nextInt(); count sc.nextInt() sc.nextInt sc int[] v = new int[count]; v new int[count] count int[] c = new int[count]; c new int[count] count for (int i = 0; i < count; i++ ) {
      v[i] = sc.nextInt();
    } int i = 0; int i = 0; i 0 i < count i count 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 < count; i++) {
        c[i] = sc.nextInt();
    } int i = 0; int i = 0; i 0 i < count i count i++ i++ i {
        c[i] = sc.nextInt();
    } {
        c[i] = sc.nextInt();
    } c[i] = sc.nextInt() c[i] c i sc.nextInt() sc.nextInt sc int result = 0; result 0 for (int i = 0; i < count; i++) {
      if (v[i] > c[i]) {
        result += v[i] - c[i];
      }
    } int i = 0; int i = 0; i 0 i < count i count i++ i++ i {
      if (v[i] > c[i]) {
        result += v[i] - c[i];
      }
    } {
      if (v[i] > c[i]) {
        result += v[i] - c[i];
      }
    } if (v[i] > c[i]) {
        result += v[i] - c[i];
      } v[i] > c[i] v[i] v i c[i] c i {
        result += v[i] - c[i];
      } result += v[i] - c[i] result v[i] - c[i] v[i] v i c[i] c i System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);

    int count = sc.nextInt();

    int[] v = new int[count];
    int[] c = new int[count];

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

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

    int result = 0;
    for (int i = 0; i < count; i++) {
      if (v[i] > c[i]) {
        result += v[i] - c[i];
      }
    }

    System.out.println(result);
  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);

    int count = sc.nextInt();

    int[] v = new int[count];
    int[] c = new int[count];

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

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

    int result = 0;
    for (int i = 0; i < count; i++) {
      if (v[i] > c[i]) {
        result += v[i] - c[i];
      }
    }

    System.out.println(result);
  }
} Main
import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);

    int count = sc.nextInt();

    int[] v = new int[count];
    int[] c = new int[count];

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

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

    int result = 0;
    for (int i = 0; i < count; i++) {
      if (v[i] > c[i]) {
        result += v[i] - c[i];
      }
    }

    System.out.println(result);
  }
}
