#include <bits/stdc++.h>
using namespace std;
int main() {
  long long a[300100], b[300100], ans[300100], i, j, l, m, n, x, y, z, u, v, k,
      t, f;
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  cin >> n;
  for (i = 0; i < n; i++) cin >> a[i];
  for (i = 0; i < n; i++) cin >> b[i];
  sort(a, a + n, greater<long long>());
  sort(b, b + n, greater<long long>());
  k = 0;
  a[n] = 0;
  b[n] = 0;
  x = 0;
  y = 0;
  u = 0;
  v = 0;
  for (i = 0; i < 2 * n; i++) {
    if (k == 0) {
      if (a[x] > b[y]) {
        u += a[x];
        x++;
      } else
        y++;
    } else {
      if (b[y] > a[x]) {
        v += b[y];
        y++;
      } else
        x++;
    }
    k = (k + 1) % 2;
  }
  cout << u - v;
}
