def solve(acc, rest): if not rest: return [acc] return solve(acc + rest[len(rest)-1], rest[:len(rest)-1]) + solve(acc + rest[0], rest[1:]) S = raw_input().strip() print(len(set(solve('', S))))