import java.io.*; import java.util.*; public class Main { static final int MOD = 1000000007; public static void main(String[] args) throws Exception { Scanner sc = new Scanner(); int n = sc.nextInt(); int kk = sc.nextInt(); int ll = sc.nextInt(); long[][][] dp = new long[20][n][n]; for (int i = 0; i < n; i++) { for (int j = 1; j <= ll; j++) { dp[0][i][(i + j) % n] = 1; } } for (int i = 1; i < 20; i++) { for (int j = 0; j < n; j++) { for (int k = 0; k < n; k++) { for (int l = 0; l < n; l++) { dp[i][j][l] += dp[i - 1][j][k] * dp[i - 1][k][l] % MOD; dp[i][j][l] %= MOD; } } } } long[] current = new long[n]; current[0] = 1; for (int i = 19; i >= 0 && kk > 0; i--) { if (kk >= (1 << i)) { kk -= (1 << i); long[] next = new long[n]; for (int j = 0; j < n; j++) { for (int k = 0; k < n; k++) { next[k] += current[j] * dp[i][j][k] % MOD; next[k] %= MOD; } } current = next; } } StringBuilder sb = new StringBuilder(); for (long x : current) { sb.append(x).append("\n"); } System.out.print(sb); } } class Scanner { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(""); public Scanner() throws Exception { } public int nextInt() throws Exception { return Integer.parseInt(next()); } public long nextLong() throws Exception { return Long.parseLong(next()); } public String next() throws Exception { if (!st.hasMoreTokens()) { st = new StringTokenizer(br.readLine()); } return st.nextToken(); } }