#include int main(){int m,n,i,a,b,c,k=0; scanf("%d%d",&m,&n); for(i=a;i<=b;i++) {a=i/100; b=i/10%10; c=i%10; if(a*a*a+b*b*b+c*c*c==i) {k++; printf("%d ",i);} } if(!k)printf("No\n"); return 0;}