n= int(input())
n1 = n
l =len(str(n))
sum = 0
while n !=0:
r = n % 10
sum = sum +(r**l)
n = n//10
if n1 == sum:
print("the number",n1, "is armstrong number")
else:
print("the number",n1, " is not armstrong number")
n = int(input('enter a number:'))
f1=0
f2=1
f3=1
if n==0 or n==1:
print("the given number is Fibonacci")
else:
while f1<n:
f1=f2+f3
f2=f3
f3=f1
if f1==n:
print("The given number is Fibonacci")
else:
print("The given number is not Fibonacci")
enter a number:34 The given number is Fibonacci