#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long n;
  cin >> n;
  multiset<long long> A, B;
  for (long long i = 0; i < n; i++) {
    long long num;
    cin >> num;
    A.insert(-num);
  }
  for (long long i = 0; i < n; i++) {
    long long num;
    cin >> num;
    B.insert(-num);
  }
  long long ansa = 0, ansb = 0;
  while (!A.empty() || !B.empty()) {
    long long v1 = 0, v2 = 0;
    if (A.size() > 0) {
      v1 = -(*A.begin());
      if (B.size() > 0) {
        v2 = -(*B.begin());
        if (v2 >= v1) {
          auto it = B.begin();
          B.erase(it);
        } else {
          auto it = A.begin();
          A.erase(it);
          ansa += v1;
        }
      } else {
        auto it = A.begin();
        A.erase(it);
        ansa += v1;
      }
    } else {
      if (B.size() > 0) {
        auto it = B.begin();
        B.erase(it);
      }
    }
    v1 = 0, v2 = 0;
    if (B.size() > 0) {
      long long v1 = -(*B.begin());
      if (A.size() > 0) {
        v2 = -(*A.begin());
        if (v2 >= v1) {
          auto it = A.begin();
          A.erase(it);
        } else {
          auto it = B.begin();
          B.erase(it);
          ansb += v1;
        }
      } else {
        auto it = B.begin();
        B.erase(it);
        ansb += v1;
      }
    } else {
      if (A.size() > 0) {
        auto it = A.begin();
        A.erase(it);
      }
    }
  }
  cout << ansa - ansb;
}
