#include using namespace std; #define int long long #define all(x) x.begin(), x.end() #define app push_back #ifdef LOCAL #define debug(...) [](auto...a){ ((cout << a << ' '), ...) << '\n';}(#__VA_ARGS__, ":", __VA_ARGS__) #else #define debug(...) #endif const int p=998244353; const int maxn=1e5+5; int dp[maxn];int pr[maxn]; int dp2[maxn]; int32_t main() { ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0); int n;cin>>n;int a[n];for(int i=0;i>a[i]; dp[0]=1;for(int i=1;i