#include <bits/stdc++.h>
using namespace std;
const long long MAXN = 1e5 + 10, N = 1e6;
string s, c;
int main() {
  cin >> s;
  cout << s;
  for (long long i = 0; i < s.size(); i++) c += " ";
  for (long long i = 0; i < s.size(); i++) c[s.size() - i - 1] = s[i];
  cout << c;
}
