#include<iostream> using namespace std; int main() { int s,t,h; int Armstrong; for(Armstrong=100;Armstrong<=999;Armstrong++) { s=Armstrong%10; t=(Armstrong%100)/10; h=Armstrong/100; if(s*s*s+t*t*t+h*h*h==Armstrong) cout<<Armstrong<<endl; } return 0; }