for i in range(1001):
	num = i
	result = 0
	n = len(str(i))
	while(i != 0):
		digit = i%10
		result = result + digit**n
		i = i//10
	if num == result:
		print(num, "Is an Armstrong number")
	else:
		print(num, "Is an not an Armstrong number")

