#include <bits/stdc++.h> using namespace std; signed main() { string a,b; cin >> a >> b; cout << b << ' ' << a << '\n'; return 0; }