#include <bits/stdc++.h>
using namespace std;
unordered_set<int> int_set;
set<int, greater<int> > divisors;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  string a;
  cin >> a;
  if ((a.size()) == 1) {
    cout << a << a << "\n";
    return 0;
  } else {
    string rev = string(a.rbegin(), a.rend());
    a += rev;
    cout << a << "\n";
  }
  return 0;
}
