S = list(input()) SS = set() N = len(S) for i in range(1 << N): L = [] left, right = 0, N - 1 for j in range(N): if (i >> j) & 1: L.append(S[left]) left += 1 else: L.append(S[right]) right -= 1 SS.add("".join(L)) print(len(SS))