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