#include #include using namespace std; using ll = long long; int main() { char a, b; scanf("%c %c", &a, &b); printf("%c %c\n", b, a); }