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