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