#include<bits/stdc++.h> using namespace std; int main() { int n=100; while(n<1000) { if(n==(n/100)*(n/100)*(n/100)+(n/10%10)*(n/10%10)*(n/10%10)+(n%10)*(n%10)*(n%10)) cout<<n<<" "; n++; } cout<<endl; return 0; }