import sequtils,strutils var N = stdin.readline.parseInt ans = newSeq[int](0) Ls : array[1005, array[105, int]] cnt = 0 for n in 0..