#include <bits/stdc++.h>
int main() {
  char a[2005] = {};
  int h = 0, x = 0;
  scanf("%s", a);
  for (int b = 0; b >= 0; b++) {
    if (a[b] == '\0') break;
    if (a[b] != 0) x++;
  }
  for (int b = 2 * x - 2; b >= x; b--) {
    a[b] = a[h];
    h++;
  }
  printf("%s", a);
  return 0;
}
