A=input() le=len(A) while True: B=A+A[:le-len(A)][::-1] if B==B[::-1]: print(B) break le+=1