#includeint shui(int p){ int sum=0,a,b,c; a=p/100; b=p/10-a*10; c=p%10; if(a*a*a+b*b*b+c*c*c==p) return 1; else return 0;}int main(){ int m,n,i; while(scanf("%d%d",&m,&n)!=EOF) { int l=0,k=0; for(i=m;i<=n;i++) { if(shui(i)==1){if(l==0) { printf("%d",i); l=1; }else{ printf(" %d",i);k=9;}} }printf(k==9?"\n":"no\n"); } return 0;}