S = input() N = "" s = set() def solve(S, N): if len(S) == 0: s.add(N) return solve(S[1:], S[0] + N) solve(S[:-1], S[-1] + N) solve(S, N) print(len(s))