#include <bits/stdc++.h>
using namespace std;
int main() {
  char a[10001];
  int b, k, j, l, i;
  cin >> a;
  b = strlen(a);
  for (i = b, j = b - 2; i < (2 * b - 1); i++, j--) {
    a[i] = a[j];
  }
  a[i] = '\0';
  cout << a;
  return 0;
}
