#include using namespace std; #define MOD ((long long)pow(10,9)+7) int main(){ int n; cin>>n; vector a(n); for(int i=0;i>a[i]; } vector dp(n,0); dp[0]=1; for(int i=0;i