#include <bits/stdc++.h>
using namespace std;
int gcd(int a, int b) { return b ? gcd(b, a % b) : a; }
vector<int> v;
char e[100];
int main() {
  string n, c;
  cin >> n;
  cout << n;
  reverse(n.begin(), n.end());
  cout << n;
  return 0;
}
