n,k=int(input().split()) h=input() j=h[0:k] l=h[k:] o=l+j print(o)