#include<stdio.h>
#include<string.h>
int main()
{
    char str[10000];
    scanf("%[^\n]", str);
    int len = strlen(str);
    char *left = str;
    char *right = str+len-1;
    while(left < right)
    {
        char tmp = *left;
        *left = *right;
        *right = tmp;
        left++;
        right--;
    }
    printf("%s", str);
}