#include "bits/stdc++.h" using namespace std; int main() { char A, B; cin >> A >> B; cout << B << " " << A << endl; }