#include <iostream>

using namespace std;

int main() {
    int x, y;
    char t;
    cin >> x >> t >> y;
    cout << y << t << x;
    return 0;
}