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