#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define popcount __builtin_popcount using namespace std; using ll=long long; typedef pair P; const ll MOD=998244353; ll powmod(ll a, ll k){ ll ap=a, ans=1; while(k){ if(k&1){ ans*=ap; ans%=MOD; } ap=ap*ap; ap%=MOD; k>>=1; } return ans; } ll inv(ll a){ return powmod(a, MOD-2); } int main() { int n; cin>>n; vector a(1<>a[i]; s+=a[i]; } s%=MOD; ll is=inv(s); for(int i=0; i<(1<=MOD) a[j]-=MOD; } } } ll ans=0; for(int i=0; i<(1<=MOD) ans-=MOD; } cout<