#include <iostream>
#include <vector>

using namespace std;

int main() {
    string strInput;
    cin >> strInput;
    reverse(strInput.begin(), strInput.end()); 
    cout << strInput; 

    return 0;
}