#include <bits/stdc++.h>
using namespace std;
void read() {}
void solve() {
  string s;
  cin >> s;
  string res(s);
  reverse(s.begin(), s.end());
  res += s;
  cout << res << endl;
}
int main() {
  read();
  solve();
}
