#include<iostream> #include<cstdio> #include<algorithm> #define maxn 300010 #define maxm 100010 #define ll long long usingnamespacestd;
constint p = 998244353;
ll pow_mod(ll x, ll n){ ll s = 1; for (; n; n >>= 1) { if (n & 1) s = s * x % p; x = x * x % p; } return s; }
int n, a[maxn];
ll ans, sum, C; intmain(){ cin >> n; for (int i = 1; i <= 2 * n; ++i) cin >> a[i]; sort(a + 1, a + 2 * n + 1);
ll facn = 1, fac2n = 1; for (int i = 1; i <= n; ++i) facn = facn * i % p; for (int i = 1; i <= 2 * n; ++i) fac2n = fac2n * i % p; for (int i = 1; i <= n; ++i) sum -= a[i]; for (int i = n + 1; i <= 2 * n; ++i) sum += a[i]; sum %= p; ans = sum * fac2n % p * pow_mod(facn, p - 2) % p * pow_mod(facn, p - 2) % p; cout << (ans + p) % p << endl; return0; }