#include <bits/stdc++.h>
using namespace std;
const long long N = 1e6 + 1;
map<long long, long long> mp, pm;
map<char, long long> hs;
vector<long long> v, vc, ve, vv, vd;
deque<char> p, pe;
deque<string> ts, ss, stoi, rs;
deque<double> sd, ds;
long double q, t, cnt1, cnt2;
string g, s, h, w, o, m, s1;
char z, u;
bool re, rt;
vector<pair<long long, long long> > pr, rp, pp;
map<pair<long long, long long>, long long> aw, wa;
long long a, b, n, c, f, d, e, cnt, ans, rem, temp = 0, minn = 0;
int main() {
  ios_base::sync_with_stdio(0);
  cin >> s;
  g = s;
  cout << g;
  reverse(s.begin(), s.end());
  if (g != s) cout << s;
}
