#include using namespace std; int dp[10000]; int N; int V[10000]; int main(){ cin>>N; for(int i=0;i>V[i]; for(int i=2;ians; int cur=N+1; while(cur>1){ if(dp[cur]==dp[cur-1]){ cur--; continue; } cur-=2; ans.push_back(cur+1); } reverse(ans.begin(),ans.end()); cout<