MOD = 10**9 + 7 N, d, K = map(int,input().split()) dp = [[0]*(N+1) for k in range(K+d+1)] dp[0][0] = 1 for i in range(K+1): for s in range(N): for j in range(1,d+1): dp[i+j][s+1] += dp[i][s] dp[i+j][s+1] %= MOD print(dp[K][N])