#include <iostream>
#include <stdio.h>
using namespace std;

int main () {
    ios_base::sync_with_stdio(true);
    cin.tie(NULL);    

    for (int i = 0; i < 3; i++) {
        cout << i << " ";
        cout.flush(); // <<<<<<<<<<
        printf("%d ", i);
    }

    cout << endl;
    return 0;
}