
num=int(input("Enter a number"))


n=num
s=0
while(num!=0):
    rear=num%10
    s=s+(rear*rear*rear)
    num=num//10

    







if n==s:
        print("Armstrong number")
else:
            print("Not armstrong number")
    




            
