#include using namespace std; int main() { char a,b; cin >> a >> b; printf("%c %c\n",b,a); return 0; }