#include <stdio.h> void isf(int i,int *count) { int tem,res=0; tem=i; while(i>0){ res=res+(i%10)*(i%10)*(i%10); i=i/10; } if(res==tem) { printf("%d ",tem); } else { (*count)++; } } int main() { int m,n; int i; int count=0; while(scanf("%d %d",&m,&n)!=EOF) { for(i=m;i<=n;i++) { isf(i,&count); } if(count==n-m+1) { printf("no"); } printf("\n"); } return 0; }