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