#int(input()) #map(int, input().split()) #list(map(int, input().split())) def mat_mul(a, b): n_a, m_a = len(a), len(a[0]) n_b, m_b = len(b), len(b[0]) res = [[0] * m_b for i in range(n_a)] for i in range(n_a): for k in range(m_a): for j in range(m_b): res[i][j] += a[i][k] * b[k][j] res[i][j] %= mod return res def mat_pow(a, k): if k == 1: return a n = len(a) res = [[0] * n for i in range(n)] for i in range(n): res[i][i] = 1 while k: if k & 1: res = mat_mul(res, a) a = mat_mul(a, a) k >>= 1 return res N, K, L = map(int, input().split()) x = [[0] * N for i in range(N)] mod = 10 ** 9 + 7 # print(mod) for i in range(N): for j in range(1, L+1): x[i][(i+j)%N] = 1 ans = mat_pow(x, K) # print(ans) for i in range(N): print(ans[0][i])