#include <cmath>
#include <iostream>
using namespace std;
int main() {
int n, m;
while(cin>>m>>n){
int c = 0;
for(int i = m; i <= n; i++){
if(pow((i %10), 3) + pow(((i /10) %10), 3) + pow((i /100), 3) == i){
cout << i << " ";
c = 1;
}
}
if(!c) cout << "no" << endl;
}
cout << endl;
}
// 64 位输出请用 printf("%lld")

京公网安备 11010502036488号