#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define REP(i, n) for(int i = 0;i < n;i++) #define REPR(i, n) for(int i = n;i >= 0;i--) #define FOR(i, m, n) for(int i = m;i < n;i++) #define FORR(i, m, n) for(int i = m;i >= n;i--) #define SORT(v, n) sort(v, v+n); #define VSORT(v) sort(v.begin(), v.end()); #define llong long long #define pb(a) push_back(a) using namespace std; typedef long long int ll; typedef pair pii; typedef pair pll; template vector make_v(size_t a) { return vector(a); } template auto make_v(size_t a, Ts... ts) { return vector(ts...))>(a, make_v(ts...)); } template typename enable_if::value == 0>::type fill_v(T& t, const V& v) { t = v; } template typename enable_if::value != 0>::type fill_v(T& t, const V& v) { for (auto& e : t) fill_v(e, v); } template bool chmax(T & a, const T & b) { if (a < b) { a = b; return true; } return false; } template bool chmin(T & a, const T & b) { if (a > b) { a = b; return true; } return false; } #define ARRAY_MAX 100005 const int INF = 1e9 + 7; constexpr ll MOD = 1e9 + 7; int dx4[4] = { 1,0,0,-1 }; int dy4[4] = { 0,1,-1,0 }; int dx2[2] = { 1,0 }; int dy2[2] = { 0,1 }; /******************************************************************************************/ typedef tuple tpl; int main() { cin.tie(0); ios::sync_with_stdio(false); cout << fixed << setprecision(10); int N,K; cin >> N >> K; string S; cin >> S; cout << S.substr(K-1)+ S.substr(0,K-1)<