#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n;
  cin >> n;
  long long int v[n], c[n], sum = 0, i, j, k;
  for (i = 0; i < n; ++i) {
    cin >> v[i];
  }
  for (j = 0; j < n; ++j) {
    cin >> c[j];
  }
  for (k = 0; k < n; ++k) {
    if (v[i] - c[i] > 0) {
      sum += v[i] - c[i];
    }
  }
  cout << sum;
  return 0;
}
