#include <iostream> #include <algorithm> #include <math.h> using namespace std; int main() { int i=0; int m=0; int n=0; int count3=0; while (cin >> m >> n) { if(count3) { cout<<endl; } count3++; int count2=0; for(i=m;i<=n;i++) { int a=i%10; int b=i/100; int c=(i%100)/10; int count=pow(a,3)+pow(b,3)+pow(c,3); if(count==i) { cout<<i<<" "; count2++; } } if(count2==0) { cout<<"no"; } } return 0; }