#include <bits/stdc++.h>
using namespace std;
long long mod = 1e9 + 7;
int main() {
  ios_base::sync_with_stdio(false);
  string s;
  cin >> s;
  cout << s;
  reverse(s.begin(), s.end());
  cout << s;
  return 0;
}
