def feibo(n):
if n == 1:
return 0
elif n == 2:
return 1
else:
return feibo(n - 1) + feibo(n - 2)
results = []
n = int(input())
for i in range(1, n + 1):
results.append(feibo(i))
for item in results:
print(item,end=' ')