#include <bits/stdc++.h>
using namespace std;
long long int bs(long long int n, long long int a[], long long int x) {
  long long int l = 0;
  long long int r = n - 1;
  while (l <= r) {
    long long int mid = l + (r - l) / 2;
    if (a[mid] == x)
      return mid;
    else if (a[mid] > x) {
      r = mid - 1;
    } else if (a[mid] < x) {
      l = mid + 1;
    }
  }
  return -1;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  string s;
  cin >> s;
  long long int l = s.size();
  for (long long int i = l - 1; i >= 0; i--) {
    s += s[i];
  }
  cout << s << endl;
  return 0;
}
