#include using namespace std; using ll=long long; int main(){ ll n; cin>>n; vector a(n); for(ll i=0;i>a[i]; } ll mod=998244353; sort(a.begin(),a.end()); ll ans=0; for(ll i=0;i