#include <bits/stdc++.h>
using namespace std;
const int M = 1e5 + 10;
const int MM = 2e3 + 10;
const int inf = 0x3f3f3f3f;
const int mod = 1e9 + 7;
;
const double eps = 1e-8;
const double pi = acos(-1.0);
int i, j, k, n, m, sum;
char s[M];
int main() {
  scanf("%s", &s);
  int flag = 1;
  if (strlen(s) % 2) {
    for (int i = 0, j = strlen(s) - 1; i < strlen(s) / 2; i++, j--) {
      if (s[i] != s[j]) {
        flag = 0;
        break;
      }
    }
  } else {
    for (int i = 0, j = strlen(s) - 1; i <= strlen(s) / 2 - 1; i++, j--) {
      if (s[i] != s[j]) {
        flag = 0;
        break;
      }
    }
  }
  if (flag)
    cout << s << endl;
  else {
    cout << s;
    for (int i = strlen(s) - 1; i >= 0; i--) cout << s[i];
    cout << endl;
  }
  return 0;
}
