#include <bits/stdc++.h>
using namespace std;
template <typename T>
void read(T& x) {
  x = 0;
  int fl = 1;
  char ch = getchar();
  while (ch < '0' || ch > '9') {
    if (ch == '-') fl = -1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9') {
    x = (x << 1) + (x << 3) + ch - '0';
    ch = getchar();
  }
  x *= fl;
}
template <typename T, typename... Args>
inline void read(T& t, Args&... args) {
  read(t);
  read(args...);
}
const int N = 300005;
const long long MOD = 998244353;
int n;
long long a[N];
inline long long fpow(long long bs, long long idx) {
  long long res = 1;
  bs %= MOD;
  while (idx) {
    if (idx & 1) (res *= bs) %= MOD;
    (bs *= bs) %= MOD;
    idx >>= 1;
  }
  return res;
}
int main() {
  read(n);
  for (int i = 1; i <= n * 2; i++) read(a[i]);
  sort(a + 1, a + n * 2 + 1);
  long long ans = 0;
  for (int i = 1; i <= n; i++) (ans += a[i + n] - a[i]) %= MOD;
  for (int i = 1; i <= n; i++) {
    (ans *= (i + n)) %= MOD;
    (ans *= fpow(i, MOD - 2)) %= MOD;
  }
  printf("%lld\n", ans);
  return 0;
}
