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