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