#include<iostream>
#include<iomanip>
#include<vector>
#include<string>
#include<cmath>
using namespace std;
int main()
{
int a = 1;
int b = 1;
while (true)
{
cin >> a >> b;
if (a == 0 && b == 0)
{
break;
}
for (int i = 0; i <= 99; i++)
{
if ((100 * a + i) % b == 0)
{
cout << setw(2) << setfill('0') << i << " ";
}
}
cout << endl;
}
return 0;
}
03-13
4805
04-27
1567
11-02
3311
07-27