LearnPy Hub
← Loops problems
Medium

Fibonacci Series

Print the first n Fibonacci numbers separated by spaces. The series starts 0 1 1 2 3 …

Input

One integer n ≥ 1.

Output

n numbers on one line.

Sample 1

Input
7
Output
0 1 1 2 3 5 8

Sample 2

Input
1
Output
0
solution.py
Output appears here
Hints
Fibonacci Series · Python practice problem · LearnPy Hub