#include <bits/stdc++.h>
using namespace std;
const long long MOD = 998244353;
long long pot(long long a, long long b) {
  if (b == 0) return 1;
  if (b % 2) return a * pot(a, b - 1) % MOD;
  return pot(a * a % MOD, b / 2);
}
int main() {
  ios::sync_with_stdio(0);
  int n;
  cin >> n;
  vector<long long> a(2 * n);
  for (int i = 0; i < 2 * n; ++i) cin >> a[i];
  sort(a.begin(), a.end());
  long long ans = 0;
  for (int i = 0; i < n; ++i) ans = (ans + a[i + n] - a[i]) % MOD;
  long long den = 1;
  for (int i = 1; i <= n; ++i) {
    ans = ans * (n + i) % MOD;
    den = den * i % MOD;
  }
  ans = ans * pot(den, MOD - 2) % MOD;
  cout << ans << endl;
}
