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