#include <bits/stdc++.h>
using namespace std;
vector<long long> adj[101];
void make_edge(long long a, long long b) {
  adj[a].push_back(b);
  adj[b].push_back(a);
}
int main() {
  long long odd = 0, even = 0, i = -1;
  string na;
  cin >> na;
  cout << na;
  reverse(na.begin(), na.end());
  cout << na;
  return 0;
}
