#include<iostream>
#include<string>
using namespace std;
int main()
{
//int n,a=1,b=3,c,i=0;
string a,b,c;
cin>>a>>b>>c;
cout<<b<<endl<<c<<endl<<a;
}