#include <bits/stdc++.h>
using namespace std;
int main() {
  string a;
  cin >> a;
  int n = a.size();
  string b;
  b += a;
  string tmp;
  for (int i = 1; i < n; i++) {
    tmp = a[n - 1 - i];
    b += tmp;
  }
  cout << b << endl;
}
