#include<iostream> using namespace std; const int N = 50; int a[N]; int main() { int n; cin>>n; a[0]=0; a[1]=1; for(int i=2;i<n;++i)a[i]=a[i-1]+a[i-2]; for(int i=0;i<n;++i)cout<<a[i]<<" "; return 0; }