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