import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.util.Arrays; import java.util.NoSuchElementException; public class Main { public static void main(String[] args) throws FileNotFoundException { long t = System.currentTimeMillis(); new Main().run(); System.err.println(System.currentTimeMillis() - t); } Scanner sc = new Scanner(); final long MOD=(long)1e9+7; void run() { int N=sc.nextInt(); int d=sc.nextInt(); int K=sc.nextInt(); int[] dp=new int[K+1]; dp[0]=1; for(int t=0;t=0;--i) { for(int add=1;add<=d;++add) { if(i+add