#include #include #include #include using namespace std; int main() { int n, k; cin>>n>>k; vector a(n); for(int& e: a) cin>>e; queue> q; map, int> v; q.push(a); v[a]=0; while (q.size()) { auto p=q.front(); q.pop(); if (is_sorted(begin(p), end(p))) { cout<