import sequtils proc scanf(formatstr: cstring){.header: "", varargs.} proc scan(): int = scanf("%lld\n",addr result) let n = scan() proc toI(x,y:int):int = x * 10 + y var poses = @[toI(2,8),toI(3,9),toI(7,9)] for _ in 0..