#include <bits/stdc++.h>
using namespace std;
ofstream coutf;
ifstream cinf;
const int MOD = 1e9 + 7;
const long long INF = 1e18 + 1;
int solve() {
  string s;
  cin >> s;
  for (int i = 0; i < s.length(); i++) cout << s[i];
  for (int i = s.length() - 1; i >= 0; i--) cout << s[i];
  return 0;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cinf.open("input.txt");
  coutf.open("output.txt");
  solve();
  cinf.close();
  coutf.close();
  return 0;
}
