n=int(input("enter the number"))
noofdigit,sum=0,0
n1=n
while n>0:
noofdigit=noofdigit+1
n=int(n/10)
n=n1
while n>0:
rem=n%10
k=1
i=1
while i<=noofdigit:
k=k*rem
i=i+1
sum=sum+k
n=int(n/10)
if sum==n1:
print("number is armstrong")
else:
print("number is not armstrong")