#include <bits/stdc++.h>
const int MYDD = 1103 + 2e5;
char n[MYDD];
char ans[MYDD];
int main() {
  while (scanf("%s", n) != EOF) {
    int lenn = strlen(n);
    strcpy(ans, n);
    int v = 0;
    for (int j = lenn - 1; j >= 0; j--) {
      ans[lenn + v] = n[j];
      v++;
    }
    printf("%s\n", ans);
  }
  return 0;
}
