from copy import deepcopy MOD = 10 ** 9 + 7 def matpow(A, B, w): l = len(A) while w: if w & 1: C = [0] * l for i in range(l): for j in range(l): C[i] += A[i][j] * B[j] C[i] %= MOD B = C.copy() C = [[0] * l for _ in range(l)] for i in range(l): for j in range(l): for k in range(l): C[i][j] += A[i][k] * A[k][j] C[i][j] %= MOD A = deepcopy(C) w >>= 1 return B n, k, l = map(int, input().split()) B = [0] * n B[0] = 1 A = [[0] * n for _ in range(n)] for i in range(n): for j in range(1, l + 1): A[(i + j) % n][i] = 1 B = matpow(A, B, k) print(*B, sep="\n")