#include <iostream>
#include <cstdio>
using namespace std;

int main(int argc, const char * argv[])
{
    int i, k;
    char input[21];
    for (i = 0; i < 20; i++) {
        input[i] = getchar();
        if (input[i] == '\n') {
            break;
        }
    }
    for (k = i - 1; k >= 0; k--) {
        cout << input[k];
    }
    cout << endl;
    return 0;
}