#include <bits/stdc++.h>
using namespace std;
int main() {
  std::ios::sync_with_stdio(false);
  string A;
  while (cin >> A) {
    string B = A;
    reverse(A.begin(), A.end());
    B += A;
    cout << B << endl;
  }
  return 0;
}
