#include<iostream>using namespace std;int main(){ int n=100,a,b,c; for(n=100;n<=999;n++) { a=n/100; b=n/10-a*10; c=n-a*100-b*10; if(n==a*a*a+b*b*b+c*c*c) cout<<n<<endl; }}