#include <stdio.h>
#include <conio.h>
void main()
{
    int n, sum=0;
    int r, N_copy;
    printf("Enter a number\t");
    scanf("%d", &n);
    N_copy = n;
    while(n>0)
    {
        r=n%10;
        sum = sum + (r*r*r);
        n = n\10;
    }
    if(sum == N_copy)
    printf("%d is an armstrong number", n_copy);
    else
    printf("%d is not an armstrong number", n_copy);
}