#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  string s;
  cin >> s;
  cout << s;
  reverse(s.begin(), s.end());
  cout << s << "\n";
  return 0;
}
