#include<iostream> using namespace std; int main (){ char a,b,c; cin>>a>>b>>c; swap(a,b); swap(a,c); cout<<a<<" "<<b<<" "<<c; return 0; }