a=int(input("Enter a value"))
am=0
num=a
while a>0:
  re=a%10  
  am=(re**3)+am
  a=a//10
print(a)
print(am)
if(am==num):
  print("This number is amstrong")
else:
  print("Not an amstrong")

47af290e5f2cf285bdb461c10624bf9d148b06b7
<mask token>

<mask token>
while a > 0:
    re = a % 10
    am = re ** 3 + am
    a = a // 10
print(a)
print(am)
if am == num:
    print('This number is amstrong')
else:
    print('Not an amstrong')

a = int(input('Enter a value'))
am = 0
num = a
while a > 0:
    re = a % 10
    am = re ** 3 + am
    a = a // 10
print(a)
print(am)
if am == num:
    print('This number is amstrong')
else:
    print('Not an amstrong')

a=int(input("Enter a value"))
am=0
num=a
while a>0:
  re=a%10  
  am=(re**3)+am
  a=a//10
print(a)
print(am)
if(am==num):
  print("This number is amstrong")
else:
  print("Not an amstrong")
