#include<stdio.h>
#include<conio.h>
#include<math.h>
int main()
{
int check = 0, i, k, ans;
for(i = 1; i <= 500; i++ )
{
k = i;
ans = 0;
while(k)
{
check = k%10;
check = pow(check, 3);
ans += check;
k /= 10;
}
if(i == ans)
printf("%d, ", ans);
}
printf("are the armstrong numbers between 1 and 500.");
getch();
return 0;
}