def palindrome(s): chars = list(s) reversed_chars = chars[::-1] return ''.join(chars + reversed_chars) s = input() print(palindrome(s))