A = input() def check(S): i = 0 j = len(S) - 1 while i < j: if S[i] != S[j]:return False i += 1 j -= 1 return True for i in range(len(A) + 1): if check(A[i:]): print(A + A[:i][::-1]) break