import sys input = sys.stdin.readline N, K, L = map(int, input().split()) mod = 10 ** 9 + 7 dp = [0] * (N) dp[0] = 1 for _ in range(K): imos = [0] * (N + L + 1) for i in range(N): imos[i + 1] += dp[i] imos[i + 1] %= mod imos[i + L + 1] -= dp[i] imos[i + L + 1] %= mod for i in range(N + L): imos[i + 1] += imos[i] imos[i + 1] %= mod for i in range(N + L + 1): if i < N: dp[i] = imos[i] else: dp[i % N] += imos[i] dp[i % N] %= mod for r in dp: print(r)