#00036B

paldrm

To the given string pal append minimal number of characters so that pal becomes a palindrome.



InputThe first line contains a string pal that consist of lower case letters of the english alphabet (and has max of 1000 characters).

OutputWrite the palindrome - the string pal appended with the minimal number of characters so that it becomes a palindrome.

Input:
acaba
Output:
acabaca


Input:
rotor
Output:
rotor

Submit solution

Coming later

The grading service will be connected in a later migration step. You can inspect the task and your previous results now.