mod = 10 ** 9 + 7 n,d,k = map(int,input().split()) dp = [[0] * (d*n+1) for i in range(n+1) ] dp[0][0] = 1 for i in range(n): for j in range(d*n,0,-1): dp[i+1][j] = sum(dp[i][max(0,j-d):j]) print(dp[n][k] % mod)