#include<stdio.h>
int main()
{
int rev=0,no,rem,nsave;
printf("\n Enter number : ");
scanf("%d",&no);
nsave=no;
while(no>0){
rem=no%10;
rev=rev+rem*rem*rem;
no=no/10;
}
if(nsave==rev)
printf("\n %d is armstrong ",nsave);
else
printf("\n %d is not armstrong ",nsave);
return 0;
}