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

int main()
{
        cin >> masukkan;
        reverse(masukkan.begin(),masukkan.end());

        cout << masukkan;
}