#include <bits/stdc++.h>
using namespace std;
priority_queue<int> a, b;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  long double timer = (long double)clock();
  int n;
  cin >> n;
  int x;
  for (int i = 1; i <= n; i++) {
    cin >> x;
    a.push(x);
  }
  for (int i = 1; i <= n; i++) {
    cin >> x;
    b.push(x);
  }
  int turn = 1;
  long long suma = 0, sumb = 0;
  while (a.size() || b.size()) {
    int atop = 0, btop = 0;
    if (a.size()) atop = a.top();
    if (b.size()) btop = b.top();
    if (turn) {
      if (atop > btop) {
        suma += atop;
        a.pop();
      } else {
        b.pop();
      }
    } else {
      if (btop > atop) {
        sumb += btop;
        b.pop();
      } else {
        a.pop();
      }
    }
    turn ^= 1;
  }
  cout << suma - sumb << endl;
}
