#include using namespace std; using ll = long long; int main() { int n, k; cin >> n >> k; string s; cin >> s; string t = s.substr(k-1,n - (k-1)); cout << t << s.substr(0, k - 1) << endl; }