// editor2
#include<iostream>
using namespace std;
int main(){
    for(int i=0 ;i<8;i++){
        cout<<i<<" ";
    }
    cout<<i;
}