#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  long long int a[n], b[n];
  for (int i = 0; i < n; i++) cin >> a[i];
  for (int i = 0; i < n; i++) cin >> b[i];
  sort(a, a + n, greater<long long int>());
  sort(b, b + n, greater<long long int>());
  long long int scoreA = 0, scoreB = 0, i = 0, j = 0, turn = 0;
  while (i < n && j < n) {
    if (turn == 0) {
      if (a[i] > b[j]) {
        scoreA += a[i++];
      } else {
        j++;
      }
      turn = 1;
    } else {
      if (b[j] > a[i]) {
        scoreB += b[j++];
      } else {
        i++;
      }
      turn = 0;
    }
  }
  while (i < n) {
    if (turn == 0) {
      scoreA += a[i];
      turn = 1;
    } else {
      turn = 0;
    }
    i++;
  }
  while (j < n) {
    if (turn == 1) {
      scoreB += b[j];
      turn = 0;
    } else {
      turn = 1;
    }
    j++;
  }
  cout << scoreA - scoreB;
  return 0;
}
