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