a = list(input()) n = len(a) for i in range(n): flg = True for j in range((n - i) // 2): if a[i + j] != a[n - 1 - j]: flg = False break if flg: print(''.join(a + list(reversed(a[0:i])))) exit()