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

int main(){

string x;
cin >> x;
vector<char> c;
for(int i = 0;i < x.size(); ++i)
{
 c.push_back(x[i]);
}
for(int i = c.size()-1; i > 0; --i)
{
 cout << c[i];
}

cout << endl;
return 0;
}