import sys input=lambda: sys.stdin.readline().rstrip() n,d,k=map(int,input().split()) mod=10**9+7 A=[0]*(n*d+1) A[0]=1 for _ in range(n): B=[0]*(n*d+1) for i in range(n*d+1): if not A[i]: continue else: for j in range(d): if i+j<=n*d: B[i+j+1]=(B[i+j+1]+A[i])%mod A=B print(A[k])