def create_palindrome(s): n = len(s) for i in range(n): if s[:i] == s[:i][::-1]: return s + s[:i][::-1] s = input(()) print(create_palindrome(s))