#include <bits/stdc++.h>
using namespace std;
long long M = 998244353;
multiset<long long> s;
long long pot(long long a, long long b) {
  if (b == 0) return 1;
  long long l = pot(a, b / 2);
  l = (l * l) % M;
  if (b % 2 == 1) l = (l * a) % M;
  return l;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int n;
  cin >> n;
  for (int i = 1; i <= 2 * n; ++i) {
    long long a;
    cin >> a;
    s.insert(a);
  }
  auto it = s.begin();
  long long s1 = 0, s2 = 0;
  for (int i = 1; i <= n; ++i) {
    s1 += *it;
    it++;
  }
  for (int i = 1; i <= n; ++i) {
    s2 += *it;
    it++;
  }
  long long s = (s2 - s1) % M;
  for (long long i = n + 1; i <= 2 * n; ++i) s = (s * i) % M;
  long long a = 1;
  for (long long i = 1; i <= n; ++i) a = (a * i) % M;
  s = (s * pot(a, M - 2)) % M;
  cout << s << "\n";
}
