int main()
{
int a,b,i,n,s[100];
while(scanf("%d %d",&a,&b)==2)
if(a!=0&&b!=0)
{
n=0;
a=a*100;
for(i=0;i<=99;i++)
if((a+i)%b==0)
{
s[n]=i;
n++;
}
if(n>=1)
{
for(i=0;i
if(s[i]<10)
printf("0%d ",s[i]);
else
printf("%d ",s[i]);
}
printf("%d\n",s[i]);
}
else
if(s[i]<10)
printf("0%d\n",s[i]);
else
printf("%d\n",s[i]);
}
return 0;
}