#include <iostream>
#include <cstring>
 
using namespace std;
int main()
{
   char s[21];
   int n,i;
   cin >> s;
   n = strlen( s );
   for(i=n-1;i<=0;i--)
      cout << s[i];
   cout << endl;
   return 0;
}
    