#include<bits/stdc++.h> using namespace std; int main(){ char a,b,c; cin>>a>>b>>c; cout<<c<<" "<<a<<" "<<b; return 0; }