#include <bits/stdc++.h>
using namespace std;
template <class T1, class T2>
inline void upd1(T1& a, T2 b) {
  a > b ? a = b : 0;
}
template <class T1, class T2>
inline void upd2(T1& a, T2 b) {
  a < b ? a = b : 0;
}
struct ano {
  operator long long() {
    long long x = 0, y = 0, c = getchar();
    while (c < 48) y = c == 45, c = getchar();
    while (c > 47) x = x * 10 + c - 48, c = getchar();
    return y ? -x : x;
  }
} buf;
int main() {
  string s;
  cin >> s;
  cout << s + string(s.rbegin(), s.rend());
}
