#include <bits/stdc++.h>
using namespace std;
void solve() {
  string s;
  cin >> s;
  cout << s;
  reverse(s.begin(), s.end());
  cout << s;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  { solve(); }
}
