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