#include <stdio.h>
int main()
{
int x = 0;
int a, b, c, d;
for (x = 100; x < 1000; x++)
{
a = x / 100 % 10;
b = x / 10 % 10;
c = x / 1 % 10;
if (x == a * a * a + b * b * b + c * c * c)
{
d = x;
printf("%dn", d);
}
}
return 0;
}