#include <bits/stdc++.h>
using namespace std;
inline int in() {
  int x;
  scanf("%d", &x);
  return x;
}
const long long N = 2002;
int main() {
  string s;
  cin >> s;
  cout << s;
  reverse(s.begin(), s.end());
  cout << s << endl;
}
