#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1000000007;
int main() {
  string A;
  cin >> A;
  string C = A;
  reverse(C.begin(), C.end());
  string B = A + C;
  cout << B << endl;
}
