#include <iostream>
#include <vector>
using namespace std;
int main() {
    vector<char> v;
    char c;
    while (cin >> c) {
        v.push_back(c);
    }
    for (auto it = v.rbegin(); it < v.rend(); it++) {
        cout << *it;
    }
    cout << endl;
    return 0;
}
