#include <iostream>
#include <string>

using namespace std;

int main()
{
    string a;

    cin >> a;

    int PanjangStringa = a.length();

    for (PanjangStringa-1; 0<=PanjangStringa; PanjangStringa--)

    cout <<a[PanjangStringa];
    return 0;
}