S = input() N = len(S) for i in range(N): if S[i:] == S[i:][::-1]: print(S+S[:i][::-1]) break