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