#include using namespace std; #define FOR(i,o,n) for(long long i = o;i void in(T &t,U &...u){ cin >> t; in(u...);} void out(){cout << "\n";} template void out(const T &t,const U &...u){ cout << t; if(sizeof...(u)) cout << " "; out(u...);} typedef vector vi; typedef vector vl; typedef long long ll; typedef vector > vpll; typedef vector > vpii; int32_t main() { oneforall oneforall oneforall oneforall oneforall oneforall oneforall oneforall oneforall oneforall oneforall oneforall oneforall oneforall ini(n); ini(n1); ins(morty); string morty1 = morty.substr(n1-1); string morty2 = morty.substr(0,n1-1); if((n-n1%2) == 0)reverse(morty2.begin(),morty2.end()); out(morty1+morty2); return 0; }