#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  int n;
  cin >> n;
  vector<long long int> a, b;
  for (int i = 0; i < n; i++) {
    long long int t;
    cin >> t;
    a.push_back(t);
  }
  for (int i = 0; i < n; i++) {
    int t;
    cin >> t;
    b.push_back(t);
  }
  sort(a.begin(), a.end());
  sort(b.begin(), b.end());
  long long int ascore = 0, bscore = 0;
  int i = 0;
  while (a.size() || b.size()) {
    if (i % 2 == 0) {
      if (a.size() == 0) {
        b.pop_back();
      } else if (b.size() == 0) {
        ascore += a.back();
        a.pop_back();
      } else {
        if (a.back() > b.back()) {
          ascore += a.back();
          a.pop_back();
        } else {
          b.pop_back();
        }
      }
    } else {
      if (b.size() == 0) {
        a.pop_back();
      } else if (a.size() == 0) {
        bscore += b.back();
        b.pop_back();
      } else {
        if (b.back() > a.back()) {
          bscore += b.back();
          b.pop_back();
        } else {
          a.pop_back();
        }
      }
    }
    i++;
  }
  cout << ascore - bscore;
  return 0;
}
