#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  string p;
  cin >> s;
  p = s;
  reverse(p.begin(), p.end());
  if (s == p)
    cout << s;
  else {
    cout << s;
    int l = s.size();
    for (int i = 1; i < l; ++i) cout << p[i];
  }
}
