import times, strutils, sequtils, math, algorithm, tables, sets, lists, intsets import critbits, future, strformat, deques template `max=`(x,y) = x = max(x,y) template `min=`(x,y) = x = min(x,y) template `mod=`(x,y) = x = x mod y template scan2 = (scan(), scan()) template scan3 = (scan(), scan()) let read* = iterator: string {.closure.} = while true: (for s in stdin.readLine.split: yield s) proc scan(): int = read().parseInt proc scanf(): float = read().parseFloat proc toInt(c:char): int = return int(c) - int('0') proc isGood(s:string):bool= if s.len==0: return true else: for i in 0..=0: dp[now][j][k]+=dp[prev][j][k-j] if i-j >= j and j-1>=0: dp[now][j][k]+=dp[prev][j-1][k] dp[now][j][k].mod=m #echo dp[now] for t in 0..n^2: echo dp[0][n][t] solve()