#include <bits/stdc++.h>
using namespace std;
bool IsPrime(long long int x) {
  bool isPrime = true;
  for (long long int a = 2; a * a <= x; a++) {
    if (x % a == 0) return false;
  }
  return true;
}
long long int B[1005][1005], C[20000], A[1005][1005];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  string sr, second;
  cin >> second;
  sr = second;
  reverse(sr.begin(), sr.end());
  second += sr;
  cout << second;
  return 0;
}
