#include<stdio.h>
int bs(int x)
{
return x * x * x;
}
int k;
int main()
{
while(1)
{
int a, b;
scanf("%d %d", & a, &b);
if (a == 0) break;
k = 0;
for (int i = a; i <= b; i++)
{
int d = bs(i % 10) + bs(i / 100) + bs((i / 10) % 10);
if (d == i)
{
k = 1;
printf("%d ", i);
}
}
if (k == 0)printf("no");
printf("\n");
}
return 0;
}
08-02
1722
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
09-30
464
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-08
1415
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
08-19
567
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
08-18
354
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)