//
// Created by Undefined on 2018/2/2.
//

#include <iostream>
#include <cstring>

using namespace std;

int main () {
    char s[21], tmp;
    gets(s);
    for (int i = 0, j = strlen(s) - 1; i < j; i++, j--) {
        tmp = s[i];
        s[i] = s[j];
        s[j] = tmp;
    }
    printf("%s\n", s);
}
