#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL);
  string s1;
  unsigned long long int l;
  cin >> s1;
  l = s1.length();
  for (unsigned long long int i = l - 1; i > 0; i--) {
    cout << s1[i];
  }
  for (unsigned long long int i = 0; i < l; i++) {
    cout << s1[i];
  }
  return 0;
}
