from itertools import product S = list(input()) ans = set() for i in product((0, 1), repeat=len(S)): tmp = [] l, r = 0, len(S) - 1 for j in i: if j: tmp.append(S[l]) l += 1 else: tmp.append(S[r]) r -= 1 ans.add("".join(map(str, tmp))) print(len(ans))