using System;
public class Arm2
{
public static void Main()
{
int reminder, i, num;
for(i=1; i<1000; i++)
{
int sum = 0;
num = i;
while(num>0)
{
reminder = num % 10;
sum = reminder*reminder*reminder;
num = num/10;
}
if(sum == i)
{
Console.WriteLine("{0} is armstrong number.", i);
}
}
Console.ReadLine();
}
}