Help me in solving LPYAS151 problem

My issue

hidden case is wrong but code is correct

My code

#include <stdio.h>

int main() {
	int n,r,sum=0,temp;
	scanf("%d",&n);
	temp=n;
	while(n>0)
	{
	    r=n%10;
	    sum=sum+(r*r*r);
	    n=n/10;
	}
	if (temp==sum)
	    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