#include<stdio.h>
#include<string.h>
#include<stdlib.h>
int main()
{
    int m,n;
    while(scanf("%d%d",&m,&n)!=EOF)
    {
        int c=0,t;
        for(int i=m;i<=n;i++)
        {
            t=(i/100)*(i/100)*(i/100)+((i/10)%10)*((i/10)%10)*((i/10)%10)+(i%100%10)*(i%100%10)*(i%100%10);
            if(t==i)
            {
                c++;
                if(c==1)
                    printf("%d",i);
                else
                    printf(" %d",i);
            }
        }
        if(c==0)  printf("no");
        printf("\n");
    }
    //system("pause");
    return 0;
}
posted on 2011-07-16 10:42  枫叶飘泪  阅读(292)  评论(0编辑  收藏  举报