#Functions
def fb(n):
    a =0
    b = 1
    for x in range(n):
        a=b
        b=a+b
        print(a,'\n')
    return b
num=int(input("enter the value to create fibanocci series: "))
print(fb(num))