#include<stdio.h>
int main()
{
long int b, c, d,n;
for (n = 100; n <1000;n++)
{
b = n / 100;
c = n / 10 % 10;
d = n % 10;
if(n == b * b * b + c * c * c + d * d * d)
printf(" %ld ", n);
#include<stdio.h>
int main()
{
long int b, c, d,n;
for (n = 100; n <1000;n++)
{
b = n / 100;
c = n / 10 % 10;
d = n % 10;
if(n == b * b * b + c * c * c + d * d * d)
printf(" %ld ", n);