mod = 10 ** 9 + 7 N, d, K = map(int, input().split()) dp = [[0] * (N + 1) for i in range(K + 1)] dp[0][0] = 1 X = [0] * N X[0] = 1 for i in range(1, K + 1): for j in range(N): dp[i][j + 1] += X[j] dp[i][j + 1] %= mod for j in range(N): X[j] += dp[i][j] if i >= d: X[j] -= dp[i - d][j] X[j] %= mod print(dp[-1][-1])