#include<stdio.h>
int main() {
    char string[100];
    scanf("%s", string);
    int len = strlen(string);
    for (int i = 0; i < len / 2; i++) {
        char c = string[i];
        string[i] = string[len - 1 - i];
        string[len - 1 - i] = c;
    }
    printf("%s", string);
    return 0;
}