#include <bits/stdc++.h>

using namespace std;

int main()
{
    char name[25];
    gets(name);
    int len = strlen(name);

    for(int i= len-1; i>=0; i--)
        cout << name[i] ;
    cout << endl;
    return 0;
}