import algorithm, math, sequtils, strutils, macros let read* = iterator: string = while true: (for s in stdin.readLine.split: yield s) template input*(T: static[typedesc]): untyped = when T is int: read().parseInt elif T is float: read().parseFloat elif T is string: read() let N, K = input(int) let S = "#" & input(string) echo S[K .. N] & S[1 .. K - 1]