#include <stdio.h>
int main() {
int m = 0;
int n = 0;
while (scanf("%d %d", &m, &n) != EOF)
{
int x = 0;
int y = 0;
int z = 0;
int count = 0;
for (int i = m; i <= n; i++)
{
x = i % 10;
y = (i / 10) % 10;
z = (i / 100) % 10;
int result = x*x*x + y*y*y + z*z*z;
if (result == i)
{
printf("%d ",i);
count++;
}
}
if (count == 0)
{
printf("no\n");
}
}
return 0;
}

京公网安备 11010502036488号