#include<stdio.h>
int main()
{
int i,i1,i2,i3;
int n,m;
int k=0,count=0;
while(scanf("%d%d",&m,&n)!=EOF)
{
for(i=m;i<=n;i++)
{ count=0;
i1=i%10;
i2=i/10%10;
i3=i/100;
if(i1*i1*i1+i2*i2*i2+i3*i3*i3==i)
{
count++;
k++;
if(count>0)
printf("%d ",i);
}
}
if(k==0)
printf("no\n");
}
return 0;
}