#include using namespace std; int64_t extgcd(int64_t a, int64_t b, int64_t&x, int64_t&y){ int64_t d=a; if(b!=0){ d=extgcd(b,a%b,y,x); y-=(a/b)*x; }else{ x=1;y=0; } return d; } int64_t mod_pow(int64_t a, int64_t e, int64_t p){ int64_t res = 1; for(;e>0;e>>=1){ if(e&1)res=(res*a)%p; a=(a*a)%p; } return res; } int64_t mod_inverse(int64_t a, int64_t m){ int64_t x, y; extgcd(a,m,x,y); return (m+x%m)%m; } int64_t fact(int64_t n, int64_t p){ static int64_t F[1000001]; if(F[n]) return F[n]; else{ F[0]=1; for(int64_t i=1;i<=1000000;i++){ F[i]=i*F[i-1]%p; } return F[n]; } int64_t res=1; while(n){ res*=n; if(res>p)res%=p; if(res==0)return 0; n--; } return res; } int64_t mod_fact(int64_t n,int64_t p,int64_t &e){ static int64_t F[1000001]; if(F[n]) return F[n]; e=0; if(n==0)return 1; int64_t res=mod_fact(n/p,p,e); e+=n/p; if(n/p%2!=0) return F[n]=res*(p-fact(n%p,p))%p; return F[n]=res*fact(n%p,p)%p; } int64_t mod_comb(int64_t n, int64_t k,int64_t p){ if(n<0||k<0||ne2+e3)return 0; //return (a1*mod_inverse(a2*a3%p,p))%p; return a1*mod_pow(a2*a3%p,p-2,p)%p; } int main(){ int64_t N,K,D; cin>>N>>K>>D; if(D==1){ cout<