#include using namespace std; int main(void){ char a, b; std::cin >> a >> b; std::cout << b << " " << a << '\n'; return 0; }