#include <bits/stdc++.h>
using namespace std;

string s;

void rec(int a)
{
  if (a == -1) return;

  cout << s[a];
  rec(a - 1);
}

signed main(void)
{
  cin >> s;

  rec(s.size());
  cout << endl;
}