#include<bits/stdc++.h>usingnamespace std;typedeflonglong ll;constint N =1e6+10;const ll mod =998244353;
ll n, ans;
ll arr[N];
ll fact[N], infact[N];//快速幂
ll qmi(ll a, ll k, ll p){
ll res =1;while(k){if(k &1) res = res * a % p;
a = a * a % p;
k >>=1;}return res;}intmain(){
cin >> n;for(int i =1; i <=2* n; i++)scanf("%lld",&arr[i]);sort(arr +1, arr +1+2* n);for(int i =1; i <= n; i++) ans -= arr[i];for(int i = n +1; i <=2* n; i++) ans =(arr[i]+ans)%mod;//通过预处理逆元求组合数
fact[0]=infact[0]=1;for(int i=1;i<=2*n;i++){
fact[i]=fact[i-1]*i%mod;
infact[i]=infact[i-1]*qmi(i,mod-2,mod)%mod;}
cout<<fact[2*n]*infact[n]%mod*infact[n]%mod*ans%mod<<endl;return0;}