local n, k = io.read("*n", "*n", "*l") local s = io.read() io.write(s:sub(k, n)) io.write(s:sub(1, k - 1)) io.write("\n")