#include <bits/stdc++.h>
using namespace std;
void read(bool out = 0) {}
long long a[10 * 500009];
int main() {
  string second;
  cin >> second;
  string re = second;
  reverse(re.begin(), re.end());
  cout << second << re;
}
