#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; vector pw(n); pw[0]=1; for(ll i=0;i