n = int(input('Enter a number...\n? ')) temp = n c = 0 while n > 0: a = n % 10 n = n // 10 c = c + a ** 3 if temp == c: print(temp, " is an Armstrong number") else: print(temp," ia not an Armstrong number")