#include <iostream>
#include <string>
using namespace std;
int main() {
    string str; cin >> str;
    string::reverse_iterator rit = str.rbegin();
    while (rit != str.rend()) {
        cout << *rit;
        ++ rit;
    }
    cout << endl;
    return 0;
}