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