#include using namespace std; int main(){ ios::sync_with_stdio(false); int n; cin>>n; vector v(n); for (auto &i: v) cin>>i; for (int i=n; i-->1;){ bool sorted=true; for (int j=n-1; j--;){ if (v[j+1]i+1){ cout<<"impossible"<