#include using namespace std; int main(){ char c, d; cin >> c >> d; cout << d << " " << c << endl; return 0; }