#include <bits/stdc++.h>
using namespace std;
int dx[] = {1, -1, 0, 0};
int dy[] = {0, 0, 1, -1};
int dx8[] = {1, -1, 0, 0, 1, 1, -1, -1};
int dy8[] = {0, 0, 1, -1, 1, -1, 1, -1};
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int t;
  t = 1;
  while (t--) {
    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];
    cout << "\n";
  }
  return 0;
}
