#armstrong
n=int(input("enter no="))
temp=n
sum=0
while n>0:
    r=n%10
    n=n//10
    sum=sum+(r*r*r)
if(sum==temp):
    print("armstrong")
else:
    print("not armstrong")
5da9117e2ce7d6ec79ef91024c73a885ac1a53c2
<mask token>

<mask token>
while n > 0:
    r = n % 10
    n = n // 10
    sum = sum + r * r * r
if sum == temp:
    print('armstrong')
else:
    print('not armstrong')

n = int(input('enter no='))
temp = n
sum = 0
while n > 0:
    r = n % 10
    n = n // 10
    sum = sum + r * r * r
if sum == temp:
    print('armstrong')
else:
    print('not armstrong')

#armstrong
n=int(input("enter no="))
temp=n
sum=0
while n>0:
    r=n%10
    n=n//10
    sum=sum+(r*r*r)
if(sum==temp):
    print("armstrong")
else:
    print("not armstrong")