#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long n, x, scoreA = 0, scoreB = 0;
  cin >> n;
  vector<long long> a, b;
  for (long long i = 0; i < n; i++) {
    cin >> x;
    a.push_back(x);
  }
  for (long long i = 0; i < n; i++) {
    cin >> x;
    b.push_back(x);
  }
  sort(a.begin(), a.end());
  sort(b.begin(), b.end());
  for (long long i = 0; i < 2 * n; i++) {
    if (i % 2 == 0) {
      if (a.size() == 0) {
        b.pop_back();
      } else if (b.size() == 0) {
        scoreA = scoreA + a[a.size() - 1];
        a.pop_back();
      } else {
        if (a[a.size() - 1] > b[b.size() - 1]) {
          scoreA = scoreA + a[a.size() - 1];
          a.pop_back();
        } else {
          b.pop_back();
        }
      }
    } else {
      if (b.size() == 0) {
        a.pop_back();
      } else if (a.size() == 0) {
        scoreB = scoreB + b[b.size() - 1];
        b.pop_back();
      } else {
        if (b[b.size() - 1] > a[a.size() - 1]) {
          scoreB = scoreB + b[b.size() - 1];
          b.pop_back();
        } else {
          a.pop_back();
        }
      }
    }
  }
  cout << scoreA - scoreB << endl;
  return 0;
}
