#include <iostream>
#include <string>
using namespace std;
int main(void)
{
    string s;
    cin >> s;
    int n = s.length();
    string r = "";
    for (int i = 0; i < n + 1; i++)
    {
        r += s[n - i];
    }
    cout << r << endl;
}

