#include <bits/stdc++.h>
using namespace std;
int n, m, ans = 0;
vector<int> v;
int main() {
  ios_base::sync_with_stdio(false), cin.tie(nullptr);
  string s;
  cin >> s;
  cout << s;
  reverse(s.begin(), s.end());
  cout << s;
}
