num1 = 0
num2 = 1
total = num1 + num2
current = 1
end = int(input("Last number in fib series: "))
if (end == 0):
    print("Fib of 0 = 0")
else:
    print("Fib of 0 = 0")
    print("Fib of 1 = 1")

while (current < end):
    total = num1 + num2
    num1 = num2
    num2 = total
    print("Fib of %d = %d" %((current+1),total))
    current = current + 1
