S = input() res = set() def dfs(S, T): if S == "": res.add(T) return dfs(S[1:], T + S[0]) dfs(S[:-1], T + S[-1]) dfs(S, "") print(len(res))