#include<stdio.h>
#include<math.h>
int main()
{
int gw,sw,bw,i;
for(i=100;i<1000;i++)
{
gw=i%10;
sw=i/10%10;
bw=i/100;
if(i==gw*gw*gw+sw*sw*sw+bw*bw*bw)
{
printf("%d\n",i);
}
}
system("pause");
return 0;
}