#include using namespace std; //#define int long long #define REP(i,m,n) for(int i=(m);i<(n);i++) #define rep(i,n) REP(i,0,n) #define pb push_back #define all(a) a.begin(),a.end() #define rall(c) (c).rbegin(),(c).rend() #define mp make_pair #define endl '\n' //#define vec vector //#define mat vector > #define fi first #define se second #define double long double typedef long long ll; typedef unsigned long long ull; typedef pair pll; //typedef long double ld; typedef complex Complex; const ll INF=1e9+7; const ll MOD=998244353; const ll inf=INF*INF; const ll mod=INF; const ll MAX=1000010; const double PI=acos(-1.0); typedef vector > mat; typedef vector vec; //行列累乗 mat mul(mat &A,mat &B){ mat C(A.size(),vec(B[0].size())); rep(i,A.size()){ rep(j,B[0].size()){ rep(k,B.size()){ C[i][j]=(C[i][j]+(A[i][k]*B[k][j])%mod)%mod; } } } return C; } mat pow(mat A,ll k){ mat B(A.size(),vec(A.size())); rep(i,A.size())B[i][i]=1; while(k>0){ if(k&1)B=mul(B,A); A=mul(A,A); k>>=1; } return B; } signed main(){ ll l,n,k;cin>>n>>k>>l; vector >a(n,vector(n)); rep(i,n){ REP(j,1,l+1){ a[i][(i+j)%n]=1; } } vector >c=pow(a,k); rep(i,n){ if(c[i][0]<0)c[i][0]+=mod; cout<