#include <bits/stdc++.h>
using namespace std;
char str[1000005];
int main() {
  cin >> str;
  cout << str;
  int s = strlen(str);
  for (int i = s - 1; i >= 0; i--) {
    cout << str[i];
  }
  cout << endl;
}
