#include <iostream>
using namespace std;
int main() {
// your code goes here
long long x,y;
cin>>x>>y;
if(x>y) cout<<0;
else if(x==y) cout<<1;
else
{
string s=to_string(x);
string m=to_string(y);
if(s.size()==m.size()) cout<<0;
else
{
for(int i=m.size()-s.size();i<m.size();i++) cout<<i<<" ";
}
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CgkvLyB5b3VyIGNvZGUgZ29lcyBoZXJlCglsb25nIGxvbmcgeCx5OwoJY2luPj54Pj55OwoJaWYoeD55KSBjb3V0PDwwOwoJZWxzZSBpZih4PT15KSBjb3V0PDwxOwoJZWxzZQoJewoJCXN0cmluZyBzPXRvX3N0cmluZyh4KTsKCQlzdHJpbmcgbT10b19zdHJpbmcoeSk7CgkJaWYocy5zaXplKCk9PW0uc2l6ZSgpKSBjb3V0PDwwOwoJCWVsc2UKCQl7CgkJCWZvcihpbnQgaT1tLnNpemUoKS1zLnNpemUoKTtpPG0uc2l6ZSgpO2krKykgY291dDw8aTw8IiAiOwoJCX0KCX0KCXJldHVybiAwOwp9