#include<iostream>
using namespace std;

cin<<"5"<<endl;
cin<<"1 2 3 4 5"<<endl;
cout<<"5 4 3 2 1"<<endl;
return 0;