import sequtils,strutils,math var N = stdin.readline.parseInt K = stdin.readline.parseInt A = newSeq[int](0) for i in 0..