250718
#include <stdio.h>
void omg()
{
printf("oh my god!! ");
}
int a=0, s=0, d=0, f=0, n=0, sddaddo, endo, fasd[3141], asd[3141];
int NOT_generator_YES_selfish_number(int n)
{
int i;
for(i=1; i<3141; i++)
{
if(i<10)
{
fasd[f]=i*2;
f++;
}else
{
a=i;
d+=i/10;
a-=d*10;
d+=a+i;
fasd[f]=d;
d=0;
f++;
}
printf("%d\n", fasd[f-1]);
}
}/*
int NOT_selfish_number_YES_generator(int sddaddo, int endo)
{
int i, j, HYUNSEOs_IQ=0, mlscmlsc=0, joefjoefjoefjoef=0, tpose=0;
for(i=1; i<=3141; i++)
{
asd[joefjoefjoefjoef]=i;
joefjoefjoefjoef++;
}
for(i=0; i<=endo; i++)
{
for(j=0; j<=endo; j++)
{
if(asd[i]==fasd[j])
{
tpose=1;
}
}
if(tpose==0)
{
asd[i]=
}
}
printf("%d", HYUNSEOs_IQ);
}*/
int main()
{
scanf("%d %d", &sddaddo, &endo);
NOT_generator_YES_selfish_number(sddaddo, endo);
}




