#include using namespace std; int main(){ int n; cin >> n; vector a(n); for(int i=0;i> a[i]; } int dp[n+1]; for(int i=0;i