#include <bits/stdc++.h>
using namespace std;
const int SIZE = 1 << 17;
int pointer = SIZE;
char buffer[SIZE];
char Advance() {
  if (pointer == SIZE) {
    fread(buffer, 1, SIZE, stdin);
    pointer = 0;
  }
  return buffer[pointer++];
}
int Read() {
  int answer = 0, sign = 1;
  char ch = Advance();
  while (!isdigit(ch) && ch != '-') ch = Advance();
  if (ch == '-') {
    sign = -1;
    ch = Advance();
  }
  while (isdigit(ch)) {
    answer = answer * 10 + ch - '0';
    ch = Advance();
  }
  return answer * sign;
}
char ReadCh() {
  char ch = Advance();
  while (!isdigit(ch)) ch = Advance();
  return ch;
}
const int MAXN = 1000;
char s[1 + MAXN];
int main() {
  scanf("%s", s);
  printf("%s", s);
  int n = strlen(s);
  reverse(s, s + n);
  printf("%s\n", s);
  return 0;
}
