def arm_num(n):
    arm=0
    n1=n
    while n>0:
        rem=n%10
        arm+=rem*rem*rem
        n//=10
    if n1==arm:
        return("armstrong")
    else:
        return("not a armstrong")
n=int(input("enter a num"))
print(arm_num(n))


ebc4ba834ecd9c38637b1cd513f13e56ac988ee4
<mask token>

def arm_num(n):
    arm = 0
    n1 = n
    while n > 0:
        rem = n % 10
        arm += rem * rem * rem
        n //= 10
    if n1 == arm:
        return 'armstrong'
    else:
        return 'not a armstrong'


<mask token>

def arm_num(n):
    arm = 0
    n1 = n
    while n > 0:
        rem = n % 10
        arm += rem * rem * rem
        n //= 10
    if n1 == arm:
        return 'armstrong'
    else:
        return 'not a armstrong'


<mask token>
print(arm_num(n))

def arm_num(n):
    arm = 0
    n1 = n
    while n > 0:
        rem = n % 10
        arm += rem * rem * rem
        n //= 10
    if n1 == arm:
        return 'armstrong'
    else:
        return 'not a armstrong'


n = int(input('enter a num'))
print(arm_num(n))

def arm_num(n):
    arm=0
    n1=n
    while n>0:
        rem=n%10
        arm+=rem*rem*rem
        n//=10
    if n1==arm:
        return("armstrong")
    else:
        return("not a armstrong")
n=int(input("enter a num"))
print(arm_num(n))

