"""simple docstring"""
from itertools import product







def 		__a  (      _SCREAMING_SNAKE_CASE = 15  )      ->int:
  a__:	float     				=      0.0
  a__:	float
  a__:	int
  a__:	int
  a__:	int
  a__:	int
  a__:	tuple[int, ...]

  for series in product(range(2  )						,	repeat=_SCREAMING_SNAKE_CASE  ):
    a__:	Optional[Any]     				=      series.count(1  )
    a__:	Optional[int]     				=      num_turns - num_blue
    if num_red >= num_blue:
      continue
    a__:	Tuple     				=      1.0
    for ind, col in enumerate(_SCREAMING_SNAKE_CASE						,	2  ):
      if col == 0:
        prob *= (ind - 1) / ind
      else:
        prob *= 1 / ind

    total_prob += prob

  return int(1 / total_prob  )


if __name__ == "__main__":
 print(f"{solution() = }")



"""simple docstring"""
def 		__a  (      _SCREAMING_SNAKE_CASE = 100						,	_SCREAMING_SNAKE_CASE = 100  )      ->int:
  return max(
      sum(int(_SCREAMING_SNAKE_CASE  ) for x in str(base**power  )  )
      for base in range(_SCREAMING_SNAKE_CASE  )
      for power in range(_SCREAMING_SNAKE_CASE  )  )


# Tests
if __name__ == "__main__":
 import doctest

 doctest.testmod()


