#include<stdio.h> int main(void) { int i,t,m,n,a,q,b,w,c,e,x; x=0; t=0; while(scanf("%d %d",&m,&n)!=EOF){ for(i=m-1;i<=n;i++){ m++; a=(m%10)*(m%10)*(m%10); q=m/10; b=(q%10)*(q%10)*(q%10); w=q/10; c=(w%10)*(w%10)*(w%10); e=t; if(m==a+b+c){ t++; printf("%d",m); } if(t>e){ printf(" "); } } if(t==0) printf("no"); printf(" "); } return 0; }