A = input() N = len(A) if A == A[::-1]: print(A) exit() for i in range(N): B = A + A[i::-1] if B == B[::-1]: print(B) exit()