Problem: Pari has a friend who loves palindrome numbers. A palindrome number is a number that reads the same forward or backward. For example 12321, 100001 and 1 are palindrome numbers, while 112 and 1021 are not.

Pari is trying to love them too, but only very special and gifted people can understand the beauty behind palindrome numbers. Pari loves integers with even length (i.e. the numbers with even number of digits), so she tries to see a lot of big palindrome numbers with even length (like a 2-digit 11 or 6-digit 122221), so maybe she could see something in them.

Now Pari asks you to write a program that gets a huge integer n from the input and tells what is the n-th even-length positive palindrome number?

Input

The only line of the input contains a single integer n (1 ≤ n ≤ 10100 000).

Output

Print the n-th even-length palindrome number.

Examples

Input

1


Output

11


Input

10


Output

1001

Note

The first 10 even-length palindrome numbers are 11, 22, 33, ... , 88, 99 and 1001.

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
vector<string> palindromy;
bool zwieksz(string &palindrom, int moj_index) {
  if (moj_index < 0) {
    return false;
  }
  char wartosc = palindrom[moj_index];
  int nowa_wart = int(wartosc - '0') + 1;
  if (nowa_wart > 9) {
    palindrom[moj_index] = '0';
    palindrom[palindrom.size() / 2 + ((palindrom.size() / 2 - 1) - moj_index)] =
        '0';
    return zwieksz(palindrom, moj_index - 1);
  } else {
    palindrom[moj_index] = nowa_wart + '0';
    palindrom[palindrom.size() / 2 + ((palindrom.size() / 2 - 1) - moj_index)] =
        nowa_wart + '0';
    return true;
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  string wczyt;
  cin >> wczyt;
  cout << wczyt;
  for (int i = wczyt.size() - 1; i >= 0; --i) {
    cout << wczyt[i];
  }
  cout << endl;
  return 0;
  palindromy.push_back("00");
  for (int i = 1; i < 1215; ++i) {
    string poprzedni = palindromy[i - 1];
    bool udalo_sie = zwieksz(poprzedni, poprzedni.size() / 2 - 1);
    if (!udalo_sie) {
      poprzedni = "1";
      for (int j = 0; j < palindromy[i - 1].size(); ++j) {
        poprzedni.push_back('0');
      }
      poprzedni.push_back('1');
    }
    palindromy.push_back(poprzedni);
  }
  for (int i = 1; i < palindromy.size(); ++i) {
    cout << i << ": " << palindromy[i] << endl;
  }
  return 0;
}