#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  int f;
  string str, s;
  cin >> str;
  cout << str;
  for (int i = str.length() - 1; i >= 0; i--) cout << str[i];
  return 0;
}
