#include using namespace std; #define modulo 998244353 #define mod(mod_x) ((((long long)mod_x+modulo))%modulo) #define Inf 1000000000000000 int main(){ int N; cin>>N; vector A(N); for(int i=0;i>A[i]; } int ans = 0; do{ vector t(N-1); for(int i=0;i