import sequtils, strutils var n = readLine(stdin).parseInt a = newSeqWith(n, newSeq[string](n)) posRen:seq[int] = @[] for i in 0..