#include #include using namespace std; constexpr int INF = 1 << 30; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int n; cin >> n; vector a(n+1); for(int i=0;i> a[i]; } int start = 0, i = 1; vector ans; vector rest(1, a[0]); bool is_succeeded = true; while(i < n) { if(a[i-1] > a[i]) { if(i-start < 2) { is_succeeded = false; break; } for(int j=start;j