#include #include #include #include typedef long long ll; constexpr ll mod = 1e9+7; int main(){ ll N,K,d; std::cin>>N>>K>>d; std::vector> dp(N+1,std::vector(N*d+1,0)); std::vector S(d*N+2,0); dp[0][0]=1; for(int i=0;i