#include <iostream>
using namespace std;

bool isNarcissisticNumber(int num) {
    int hundreds = num / 100;
    int tens = (num % 100) / 10;
    int units = num % 10;
    return (hundreds * hundreds * hundreds + tens * tens * tens + units * units * units == num);
}

int main() {
    int m, n;
    while (cin >> m >> n) {
        bool found = false;
        for (int i = m; i <= n; i++) {
            if (isNarcissisticNumber(i)) {
                cout << i << " ";
                found = true;
            }
        }
        if (!found) {
            cout << "no";
        }
        cout << endl;
    }
    return 0;
}