#include <iostream>
#include <string>

using namespace std;

int main(void)
{
    int i,n;
    string str;
    
    cin >> str;
    n = (int)str.length();
    
    for (i = n - 1; i >= 0; i--) {
        cout << str[i];
    }
    cout << endl;
    
    return 0;
}