#include <iostream> using namespace std; int main() { int g,s,b; for (int i=100;i<1000;i++) { b=i/100; s=i%100/10; g=i%10; if (i==b*b*b+s*s*s+g*g*g) cout<<i<<endl; } // write your code here...... return 0; }