#define _GLIBCXX_DEBUG #include using namespace std; int main() { string S, T; cin >> S >> T; cout << T << " " << S << endl; }