#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1e9 + 7;
int32_t main() {
  std::ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  long long t;
  t = 1;
  for (long long tc = 0; tc < t; tc++) {
    string str, ss;
    cin >> str;
    ss = str;
    reverse(ss.begin(), ss.end());
    str += ss;
    cout << str << "\n";
  }
  return 0;
}
