"""simple docstring"""
def 						__a   (	_SCREAMING_SNAKE_CASE = 4000000   )	->int:
  a__:     Optional[Any]										=	[]
  a__							,    a__:     List[str]										=	0, 1
  while b <= n:
    if b % 2 == 0:
      even_fibs.append(_SCREAMING_SNAKE_CASE   )
    a__							,    a__:     Union[str, Any]										=	b, a + b
  return sum(_SCREAMING_SNAKE_CASE   )


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



"""simple docstring"""
def 						__a   (	_SCREAMING_SNAKE_CASE		,     _SCREAMING_SNAKE_CASE = False   )	->str:

  if not isinstance(_SCREAMING_SNAKE_CASE		,     _SCREAMING_SNAKE_CASE   ):
    a__:     Optional[int]										=	F'Expected string as input, found {type(_SCREAMING_SNAKE_CASE   )}'
    raise ValueError(_SCREAMING_SNAKE_CASE   )
  if not isinstance(_SCREAMING_SNAKE_CASE		,     _SCREAMING_SNAKE_CASE   ):
    a__:     List[str]										=	F'Expected boolean as use_pascal parameter, found {type(_SCREAMING_SNAKE_CASE   )}'
    raise ValueError(_SCREAMING_SNAKE_CASE   )

  a__:     int										=	input_str.split('_'   )

  a__:     List[str]										=	0 if use_pascal else 1

  a__:     List[str]										=	words[start_index:]

  a__:     List[str]										=	[word[0].upper() + word[1:] for word in words_to_capitalize]

  a__:     List[str]										=	'' if use_pascal else words[0]

  return "".join([initial_word, *capitalized_words]   )


if __name__ == "__main__":
 from doctest import testmod

 testmod()


