import java.util.Scanner;

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

    while (in.hasNext()) {
      int N = in.nextInt();
      int[] V = new int[N];
      int[] C = new int[N];

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

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

      int maxDiff = 0;
      for (int i = 0; i < V.length; ++i) {
        int diff = V[i] - C[i];

        if (diff > 0) {
          maxDiff += diff;
        }
      }

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

    while (in.hasNext()) {
      int N = in.nextInt();
      int[] V = new int[N];
      int[] C = new int[N];

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

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

      int maxDiff = 0;
      for (int i = 0; i < V.length; ++i) {
        int diff = V[i] - C[i];

        if (diff > 0) {
          maxDiff += diff;
        }
      }

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

    while (in.hasNext()) {
      int N = in.nextInt();
      int[] V = new int[N];
      int[] C = new int[N];

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

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

      int maxDiff = 0;
      for (int i = 0; i < V.length; ++i) {
        int diff = V[i] - C[i];

        if (diff > 0) {
          maxDiff += diff;
        }
      }

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

    while (in.hasNext()) {
      int N = in.nextInt();
      int[] V = new int[N];
      int[] C = new int[N];

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

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

      int maxDiff = 0;
      for (int i = 0; i < V.length; ++i) {
        int diff = V[i] - C[i];

        if (diff > 0) {
          maxDiff += diff;
        }
      }

      System.out.println(maxDiff);
    }
  } Scanner in = new Scanner(System.in); in new Scanner(System.in) while (in.hasNext()) {
      int N = in.nextInt();
      int[] V = new int[N];
      int[] C = new int[N];

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

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

      int maxDiff = 0;
      for (int i = 0; i < V.length; ++i) {
        int diff = V[i] - C[i];

        if (diff > 0) {
          maxDiff += diff;
        }
      }

      System.out.println(maxDiff);
    } in.hasNext() in.hasNext in {
      int N = in.nextInt();
      int[] V = new int[N];
      int[] C = new int[N];

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

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

      int maxDiff = 0;
      for (int i = 0; i < V.length; ++i) {
        int diff = V[i] - C[i];

        if (diff > 0) {
          maxDiff += diff;
        }
      }

      System.out.println(maxDiff);
    } int N = in.nextInt(); N in.nextInt() in.nextInt in 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 < V.length; ++i) {
        V[i] = in.nextInt();
      } int i = 0; int i = 0; i 0 i < V.length i V.length V V.length ++i ++i i {
        V[i] = in.nextInt();
      } {
        V[i] = in.nextInt();
      } V[i] = in.nextInt() V[i] V i in.nextInt() in.nextInt in for (int i = 0; i < C.length; ++i) {
        C[i] = in.nextInt();
      } int i = 0; int i = 0; i 0 i < C.length i C.length C C.length ++i ++i i {
        C[i] = in.nextInt();
      } {
        C[i] = in.nextInt();
      } C[i] = in.nextInt() C[i] C i in.nextInt() in.nextInt in int maxDiff = 0; maxDiff 0 for (int i = 0; i < V.length; ++i) {
        int diff = V[i] - C[i];

        if (diff > 0) {
          maxDiff += diff;
        }
      } int i = 0; int i = 0; i 0 i < V.length i V.length V V.length ++i ++i i {
        int diff = V[i] - C[i];

        if (diff > 0) {
          maxDiff += diff;
        }
      } {
        int diff = V[i] - C[i];

        if (diff > 0) {
          maxDiff += diff;
        }
      } int diff = V[i] - C[i]; diff V[i] - C[i] V[i] V i C[i] C i if (diff > 0) {
          maxDiff += diff;
        } diff > 0 diff 0 {
          maxDiff += diff;
        } maxDiff += diff maxDiff diff System.out.println(maxDiff) System.out.println System.out System System.out maxDiff String[] args args public class Main {
  public static void main (String[] args) {
    Scanner in = new Scanner(System.in);

    while (in.hasNext()) {
      int N = in.nextInt();
      int[] V = new int[N];
      int[] C = new int[N];

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

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

      int maxDiff = 0;
      for (int i = 0; i < V.length; ++i) {
        int diff = V[i] - C[i];

        if (diff > 0) {
          maxDiff += diff;
        }
      }

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

    while (in.hasNext()) {
      int N = in.nextInt();
      int[] V = new int[N];
      int[] C = new int[N];

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

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

      int maxDiff = 0;
      for (int i = 0; i < V.length; ++i) {
        int diff = V[i] - C[i];

        if (diff > 0) {
          maxDiff += diff;
        }
      }

      System.out.println(maxDiff);
    }
  }
} Main
import java.util.Scanner;

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

    while (in.hasNext()) {
      int N = in.nextInt();
      int[] V = new int[N];
      int[] C = new int[N];

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

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

      int maxDiff = 0;
      for (int i = 0; i < V.length; ++i) {
        int diff = V[i] - C[i];

        if (diff > 0) {
          maxDiff += diff;
        }
      }

      System.out.println(maxDiff);
    }
  }
}