#include <bits/stdc++.h>
using namespace std;
int main() {
  string a, b;
  cin >> a;
  for (long long int i = 0, j = 0, k = 0; i < a.size(); i++, j++, k++) {
    b.insert(j, 1, a[i]);
    b.insert(b.size() - k, 1, a[i]);
  }
  cout << b;
  return 0;
}
