#include <iostream>
#include <vector>
#include <set>
#include <queue>
#include <stack>
#include <string>
#include <sstream>
#include <list>
#include <functional>
#include <algorithm>

using namespace std;

int main(int, char**){
    string str;
    cin >> str;
    for(auto it=str.rbegin();it!=str.rend();++it) cout << *it;
    cout << endl;
    return 0;
}