// @BEGIN_OF_SOURCE_CODE

#include <iostream>
#include <cstring>

using namespace std;

int main ()
{
    char str [20 + 10];

    scanf ("%d", str);

    int length = strlen(str);
    
    for ( int i = length - 1; i >= 0; i-- ) 
        printf ("%c", str [i]);
    
    printf ("\n");

    return 0;
}

// @END_OF_SOURCE_CODE