// editor2
#include <iostream>
using namespace std;
int main()
{
    int a,b,c,d,e,f,g,h;
    a=1;
    b=2;
    c=3;
    d=4;
    e=5;
    f=6;
    g=7;
    h=8;
    cout<<h<<" "<<a<<" "<<b" "<<c<<" "<<d<<" "<<e<<" "<<f" "<<g;
    return 0;
}