#include <bits/stdc++.h>
using namespace std;
string s, ss;
int main() {
  ios::sync_with_stdio(false), cin.tie(0), cout.tie(0);
  cin >> s;
  ss = s;
  reverse(ss.begin(), ss.end());
  cout << s + ss;
}
