#include
int main()
{
int m, n, t, a, b, c, sum;
while (scanf("%d %d", &m, &n) != EOF)
{
sum = 0;
for (t = m; t <= n; t++)
{//<====================
a = t / 100;
b = t / 10 % 10;//<====================
c = t % 10;
//{//<====================
if (t == a * a * a + b * b * b + c * c * c)
{//<====================
sum++;
printf("%d", t);
//{//<====================
//if (sum > 1)
printf(" ");
//else//<====================
//printf("\n");//<====================
}
}
if(sum == 0)
printf("no\n");
else
printf("\n");
}
return 0;
}
