#include using namespace std; using LL=long long; using ULL=unsigned long long; #define rep(i,n) for(int i=0; i<(n); i++) int N; LL K; int A[100]; int P[100]; bool same(){ bool res=true; rep(i,N) if(A[i]!=P[i]) res=false; return res; } void op(){ for(int i=P[0]; i>=1; i--) swap(P[0],P[i]); } void print(){ rep(i,N) printf("%d ",P[i]); cout<