#include <stdio.h>
#include <string.h>

int main(){
    char str[21];

    scanf( "%s",str );

    int strL = strlen( str );

    for( int i = strL;i >= 0;i-- ){
        printf( "%c",str[i] );
    }
    return 0;
}