import strutils import sequtils import algorithm import math import queues import tables import sets import future const INF* = high(int) div 4 proc readLine*(): string = stdin.readLine() proc readSeq*(): seq[string] = readLine().strip().split() proc readSeq*(n: Natural): seq[string] = result = newSeq[string](n) for i in 0..