#define _GLIBCXX_DEBUG #define ll long long #include using namespace std; using Graph = vector>; int main(){ int N, K; cin >> N >> K; string S; cin >> S; string ans = ""; for(int i = K-1; i < N; i++) ans += S[i]; for(int i = 0; i < K-1; i++) ans += S[i]; cout << ans << endl; }