#include <stdio.h>



#include <math.h>
int main()
{
	int n, m = 0; 
	int a, b, c = 0; 
	int count = 0;
	while (scanf("%d %d", &n, &m) != EOF)
	{
		int i = 0; 
		for (i = n; i <= m; i++)
		{
			a = i % 10;
			b = i / 10 % 10;
			c = i / 100 % 10;
			if (i == (pow(a, 3) + pow(b, 3) + pow(c, 3)))
			{
				printf("%d ", i);
				count++; 
			}
		}
		if (count == 0)
		{
			printf("no\n");
		}
		
	}
	return 0; 
}