#include <iostream>
#include <string>

using namespace std;

int main()
{
    string rev;

    cin >> rev;
    for (int i = rev.size() - 1; i >= 0; i--)
        cout << rev.at(i);
    cout << endl;

    return 0;
}