#include <iostream>
#include <vector>
#include <sstream>
#include <string>
#include <math.h>
#include <algorithm>

using namespace std;

int main()
{

string s;
cin>>s;
reverse(s.begin(),s.end());
cout<<s;

}