#include <bits/stdc++.h>
using namespace std;
const int mod = 1e9 + 7;
mt19937 rnd(chrono::steady_clock::now().time_since_epoch().count());
int dx[]{-1, 0, 0, 1};
int dy[]{-1, -1, 1, 1};
void solve() {
  string str;
  cin >> str;
  cout << str;
  reverse(str.begin(), str.end());
  cout << str << '\n';
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  solve();
  cerr << "Time elapsed: " << 1.0 * clock() / CLOCKS_PER_SEC << "s.\n";
  return 0;
}
