#include <bits/stdc++.h>
using namespace std;
const int MOD = (1e9) + 7;
const long long inf = 1e17;
const int offset = 3000;
std::vector<long long> v;
int a[2225];
int a1[2222], a2[2222], lis[2002][2002][2];
int main() {
  string s, t;
  cin >> s;
  t = s;
  reverse(s.begin(), s.end());
  t += s;
  cout << t;
  return 0;
}
