fun main(args: Array) = p1020() fun p1020() { val (n, k) = readLine()!!.split(' ').map { it.toInt() } val s = readLine()!! if (n == k) return println(s.reversed()) val answer = s.drop(k - 1) + s.take(k - 1) println(answer) }