#include <iostream>
using namespace std;

int main(int argc, char **argv)
{
    int n;
    cin >> n;
    
    if(n==1)
    {
        cout<<0;
    }
    else if(n==2)
    {
        cout<<0<<"\n"<<1;
    }
    else
    {
        int first=0;
        int second=1;
        cout<<0<<"\n"<<1<<"\n";
        int i=3;
        int temp;
        while(i<=n)
        {
            cout<<first+second<<"\n";
            temp=second;
            second=first+second;
            first=temp;
            i++;
        }
    }
    return 0;
    
}