#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  long long ans_a = 0, ans_b = 0;
  cin >> n;
  multiset<int> a;
  multiset<int> b;
  for (int i = 0; i < n; i++) {
    int temp;
    cin >> temp;
    a.insert(temp);
  }
  for (int i = 0; i < n; i++) {
    int temp;
    cin >> temp;
    b.insert(temp);
  }
  while (!a.empty() || !b.empty()) {
    auto al = a.end(), bl = b.end();
    if (!a.empty() && !b.empty()) {
      al--;
      bl--;
      if (*bl > *al)
        b.erase(b.find(*bl));
      else {
        ans_a += *al;
        a.erase(a.find(*al));
      }
    } else if (!a.empty()) {
      al--;
      ans_a += *al;
      a.erase(a.find(*al));
    } else {
      bl--;
      b.erase(b.find(*bl));
    }
    al = a.end();
    bl = b.end();
    if (!a.empty() && !b.empty()) {
      al--;
      bl--;
      if (*al > *bl)
        a.erase(a.find(*al));
      else {
        ans_b += *bl;
        b.erase(b.find(*bl));
      }
    } else if (!b.empty()) {
      bl--;
      ans_b += *bl;
      b.erase(b.find(*bl));
    } else {
      al--;
      a.erase(a.find(*al));
    }
  }
  cout << ans_a - ans_b;
  return 0;
}
