#include <algorithm>
#include <iostream>
using namespace std;

int main() {
    string str;
    cin >> str;

    reverse(str.begin(), str.end());  // 调用reverse函数翻转字符串
    cout << str << endl;

}
// 64 位输出请用 printf("%lld")