Integer
Integer-26
Integer-27
Integer-28
~/algor $ cat problems/palindrom-yasash
Build a palindrome
Easy
1000 ms
64 MB
16%
A three-digit positive integer $n$ is given. Append its first two digits in reverse order to its end to get a five-digit number: $123$ gives $12321$. Such a number reads the same from left to right and from right to left (a palindrome).
Input
One three-digit positive integer $n$.
Output
One five-digit positive integer.
Note
$100 \le n \le 999$
Examples
Input #1
123
Output #1
12321
Input #2
450
Output #2
45054