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