#include <bits/stdc++.h>
using lint = long long;
constexpr lint MOD = 998244353;
lint quickPower(lint x, lint y) {
  lint res = 1;
  while (y > 0) {
    if (y & 1) {
      res = (res * x) % MOD;
    }
    x = (x * x) % MOD;
    y >>= 1;
  }
  return res;
}
int main() {
  std::ios::sync_with_stdio(false);
  std::cin.tie(nullptr);
  std::cout.tie(nullptr);
  int count;
  std::cin >> count;
  std::vector<lint> factors;
  factors.push_back(1);
  for (int i = 1; i <= count * 2; i++) {
    factors.push_back((factors[i - 1] * i) % MOD);
  }
  std::vector<lint> arr;
  for (int i = 0; i < count * 2; i++) {
    arr.emplace_back();
    std::cin >> arr[i];
  }
  std::sort(arr.begin(), arr.end());
  lint res = 0;
  for (int i = 0; i < count; i++) {
    res = (res + arr[count + i] - arr[i]) % MOD;
  }
  std::cout << (((((res * factors[2 * count]) % MOD) *
                  quickPower(factors[count], MOD - 2)) %
                 MOD) *
                quickPower(factors[count], MOD - 2)) %
                   MOD
            << std::endl;
  return 0;
}
