#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
int a=0,b=1;
int n;
int c;
cin>>n;
if(n==1)
cout<<"0"<<endl;
else if(n==2)
cout<<"0 1"<<endl;
else
cout<<"0 1 ";
for(int i=3;i<=n;i++)
{
c=a+b;
cout<<c<<" ";
a=b;
b=c;
}
return 0;
}