import sys input = sys.stdin.readline def palidrome(S): for i in range(len(S)): if S[i]!=S[len(S)-1-i]: return False return True S=input().strip() for i in range(len(S)): T=S+S[:i][::-1] print(T) if palidrome(T)==True: print(T) break