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 k = sc.nextInt(); int m = sc.nextInt(); long[][][] array = new long[20][n][n]; for (int i = 0; i < n; i++) { for (int j = 0; j < m; j++) { array[0][i][(i + j + 1) % n]++; } } for (int a = 1; a < 20; a++) { for (int b = 0; b < n; b++) { for (int c = 0; c < n; c++) { for (int d = 0; d < n; d++) { array[a][b][c] += array[a - 1][d][c] * array[a - 1][b][d] % MOD; array[a][b][c] %= MOD; } } } } long[] ans = new long[n]; ans[0] = 1; for (int i = 19; i >= 0; i--) { if (k < (1 << i)) { continue; } k -= 1 << i; long[] next = new long[n]; for (int a = 0; a < n; a++) { for (int b = 0; b < n; b++) { next[a] += ans[b] * array[i][a][b] % MOD; next[a] %= MOD; } } ans = next; } StringBuilder sb = new StringBuilder(); for (long x : ans) { 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(); } }