#include using namespace std; #ifdef LOCAL #include "debug.h" #else #define DEBUG(...) #endif int main() { cin.tie(nullptr); ios::sync_with_stdio(false); int n, k; cin >> n >> k; string s; cin >> s; rotate(begin(s), begin(s) + (k - 1), end(s)); cout << s << '\n'; }