s = input().strip()
rev_s = s[::-1]
max_k = 0
for k in range(len(s) + 1):
    if s.endswith(rev_s[:k]):
        max_k = k
print(s + rev_s[max_k:])