#include <bits/stdc++.h>
using namespace std;
int main() {
  char a[100500];
  while (cin >> a) {
    cout << a;
    for (int i = strlen(a) - 1; i >= 0; i--) {
      cout << a[i];
    }
    cout << endl;
  }
  return 0;
}
