import algorithm, hashes, macros, math, sequtils, sets, strutils, tables, times, unicode macro unpack*(rhs: seq, cnt: static[int]): auto = let t = genSym(); result = quote do:(let `t` = `rhs`;()) if NimMinor <= 17: for i in 0..= M: echo 0 else: var res = 1 for i in 1..N: res *= i res = res mod M echo res