#include <bits/stdc++.h>
using namespace std;
char s[10000000];
void daochuoi(char s[]) {
  int i, l;
  i = 0;
  l = strlen(s) - 1;
  while (i < l) {
    swap(s[i], s[l]);
    i++;
    l--;
  }
}
void solve() {
  cout << s;
  daochuoi(s);
  cout << s << endl;
}
int main() {
  while (cin >> s) solve();
  return 0;
}
