#include
#include
using namespace std;
int main()
{
int m,n;
while(cin>>m>>n)
{ int i;
int count=0;
int a1[999];
for( i=m;i<n+1;i++)
{
int a=i%10;
int b=i/10%10;
int c=i/100;
if(i==(pow(a,3)+pow(b,3)+pow(c,3)))
{
a1[count++]=i;
}
}
if(count==0)
cout<<"no"<<endl;
else
for(int j=0;j<count;j++)
{
if(j!=count-1)
cout<<a1[j]<<" ";
else
cout<<a1[j]<<endl;
}
}
}