#include <iostream> using namespace std; int main() { int n; cin >> n; int a = 0, b = 1, sum = 1; for (int i = 1; i <= n; i++) { cout << a << ' '; sum = a + b; a = b; b = sum; } return 0; }