Help me in solving LPYAS151 problem

My issue

showing faild hiden test case

My code

#include<stdio.h> 
int main()
{ 
    int n,z,r,x=0;
    scanf("%d",&n);
    z=n;
    while(n>0)
    {
        r=n%10;
        x=x+r*r*r;
        n=n/10;
    }
    if(x==z)
    printf("Armstrong");
    else
    printf("Not Armstrong");
    return 0;
}

Learning course: Algorithmic Problem Solving
Problem Link: https://www.codechef.com/learn/course/klu-problem-solving/KLUPS00A/problems/LPYAS151