#include using namespace std; typedef long long ll; int main(){ string a,b; cin >> a >> b; cout << b << " " << a << endl; return 0; }