#include <iostream>
#include <string>

using namespace std;

int main() {
    int i,len;
    string ch;

    //while(cin >> ch){

    len = ch.length();

    for(i = 0;i < len / 2;i++){
        char box = ch[i];
        ch[i] = ch[len - i];
        ch[len - i] = box;
    }

    for(i = 0; i <= len;i++){
        cout << ch[i];
    }
    cout << endl;

    // }

    return 0;
}