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