#include using namespace std; long mod=1000000007; long countArray(int n, int k, int x) { // Return the number of ways to fill in the array. if(x<=k) { long sum=1; long t=0; for(int i=0;i0) { if(y%2==1) res=(res*p)%mod; p=(p*p)%mod; y=y/2; } long one=0; long baki=(sum*res)%mod; for(int i=1;i> n >> k >> x; long answer = countArray(n, k, x); cout << answer << endl; return 0; }