#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int t;
  t = 1;
  while (t--) {
    string s;
    cin >> s;
    cout << s;
    for (int i = s.size() - 1; i >= 0; i--) cout << s[i];
    cout << endl;
  }
  return 0;
}
