#include <bits/stdc++.h>
using namespace std;
const double pi = acos(-1);
const double eps = 1e-6;
int main() {
  ios::sync_with_stdio(false);
  string a;
  cin >> a;
  cout << a;
  for (int i = a.size() - 2; i >= 0; i--) {
    cout << a[i];
  }
  return 0;
}
