#include <bits/stdc++.h>
using namespace std;
inline void read(int &x) {
  char c = getchar();
  int p = 1;
  x = 0;
  while (!isdigit(c)) {
    if (c == '-') p = -1;
    c = getchar();
  }
  while (isdigit(c)) {
    x = (x << 1) + (x << 3) + (c ^ '0');
    c = getchar();
  }
  x *= p;
}
int main() {
  char str[20005];
  scanf("%s", str + 1);
  int n = strlen(str + 1);
  for (register int i = 1; i <= 2 * n; ++i) {
    if (i <= n)
      printf("%c", str[i]);
    else
      printf("%c", str[2 * n - i + 1]);
  }
  return 0;
}
