#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  cin >> n;
  std::vector<int> l1;
  std::vector<int> l2;
  for (int i = 0; i < n; ++i) {
    int inp;
    cin >> inp;
    l1.push_back(inp);
  }
  for (int i = 0; i < n; ++i) {
    int inp;
    cin >> inp;
    l2.push_back(inp);
  }
  long long int s1 = 0;
  long long int s2 = 0;
  sort(l1.begin(), l1.end());
  sort(l2.begin(), l2.end());
  int run = n;
  int len1 = l1.size();
  int len2 = l2.size();
  while (run--) {
    if (len1 == 0) {
      len2--;
      if (len2) s2 += l2[len2 - 1];
      len2--;
      continue;
    } else if (len2 == 0) {
      s1 += l1[len1 - 1];
      len1--;
      len1--;
      continue;
    }
    if (l1[len1 - 1] > l2[len2 - 1] && len1 && len2) {
      s1 += l1[len1 - 1];
      len1--;
    } else {
      len2--;
    }
    if (l1[len1 - 1] < l2[len2 - 1] && len1 && len2) {
      s2 += l2[len2 - 1];
      len2--;
    } else if (len1 == 0) {
      s2 += l2[len2 - 1];
      len2--;
      continue;
    } else {
      len1--;
    }
  }
  cout << s1 - s2;
  return 0;
}
