#include<stdio.h>
#include<string.h>
#define ll long long 
ll a[2100][2100]={0};
const ll maxn=1e9+7;
void look()
{
	memset(a,0,sizeof a);
	a[0][0]=1;
	for(int i=1;i<2005;i++)
	{
		a[i][0]=a[i][i]=1;
		for(int j=1;j<=i;j++)
		{
			a[i][j]=(a[i-1][j-1]+a[i-1][j])%maxn;
		}
	}
//	printf("good");
}

int main()
{
	look();
	ll n=0,k=0;
	while(~scanf("%lld%lld",&n,&k))
	{
//		printf("%lld   %lld\n",n,k);
		int h=n-k+1;
		for(ll i=1;i<=k;i++)
		{
//			printf("##%d\n",i);
			printf("%lld\n",(a[h][i]*a[k-1][i-1])%maxn);
		}
	}
}