import strutils, sequtils proc main() = let nm = stdin.readLine.split.map(parseInt) (n, m) = (nm[0], nm[1]) a = (0..