n = int(input("say the nth term of the Fibonacci Series")) a,c = 0,0 b = 1 for ele in range(0,n): print(a,end=' ') c = a + b a = b b = c