#limit=input("Enter the limit to print the fibonacci series")

#a=0
#b=1
#c=0

#print a
#print b
#i=1
#while(i<limit-1):
#  c=a+b
#  print c
#  a=b
#  b=c
#  i=i+1

##second type
target=input("Enter the number upto which fibonacci series to be printed")

a=0
b=1
c=0

print a
print b
i=1
while(i<limit-1):
  c=a+b
  print c
  a=b
  b=c
  i=i+1  
