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

int main() {
    string str;
    cin >> str;
    int n = str.size();
    for (int i = 0; i < n; ++i) {
        cout << str[n - i - 1];
    }
    cout << endl;
    
    return 0;
}
