#include <bits/stdc++.h>
using namespace std;
string isituniquee(string A) {
  sort(A.begin(), A.end());
  A.erase(unique(A.begin(), A.end()), A.end());
  return A;
}
bool isPalindrome(string str) {
  int low = 0;
  int high = str.length() - 1;
  while (low < high) {
    if (str[low] != str[high]) return false;
    low++;
    high--;
  }
  return true;
}
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  string s;
  cin >> s;
  string j = s;
  int l = s.length();
  if (isPalindrome(s))
    cout << s;
  else {
    reverse(j.begin(), j.end());
    s.append(j);
    cout << s;
  }
  return 0;
}
