#include <iostream> #include <cmath> using namespace std; int main() { int n,m,i; int c, d,e; int count = 0; int num; double num1; while(cin >> n >> m) { if (n > m) { cout << "error number input!" << endl; } else { if (n >= 100 && n <= 999 && m >= 100 && m <= 999) { for (i = n; i <= m; i++) { num = i; c = num % 10; num = num / 10; d = num % 10; num = num / 10; e = num % 10; num1 = pow(c, 3) + pow(d, 3) + pow(e, 3); if (i == num1) { cout << i << " "; count++; } } if (count==0) { cout << "no" << endl; } } } } }