import sequtils,strutils,algorithm,math,sugar,macros,strformat template get*():string = stdin.readLine().strip() let S = get() var res = newSeq[int]() proc find(start:int) = var is1st = true for i in start.. 0 : echo res.sorted(cmp)[0] echo -1