#include using namespace std; using ll=long long; constexpr int MOD=998244353; namespace Lib{ ll modpow(ll a,ll n){ long long ret=1,t=a; while(n>0){ if(n&1)ret=ret*t%MOD; t=t*t%MOD; n/=2; } return ret; } } int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); time_t start=clock(); int N; cin>>N; vector B(N,0); for(int &i:B)cin>>i; while(clock()-start<1900000){ vector B2(N,0); for(int j=0;j