
def 						__magic_name__			(   __a      :	str	,		__a      :	bool = False						):



     '''simple docstring'''




     if not isinstance(SCREAMING_SNAKE_CASE__	,		SCREAMING_SNAKE_CASE__						):
          UpperCamelCase__				=    f"Expected string as input, found {type(SCREAMING_SNAKE_CASE__						)}"
          raise ValueError(SCREAMING_SNAKE_CASE__						)
     if not isinstance(SCREAMING_SNAKE_CASE__	,		SCREAMING_SNAKE_CASE__						):
          UpperCamelCase__				=    f"Expected boolean as use_pascal parameter, found {type(SCREAMING_SNAKE_CASE__						)}"
          raise ValueError(SCREAMING_SNAKE_CASE__						)

     UpperCamelCase__				=    input_str.split("""_"""						)

     UpperCamelCase__				=    0 if use_pascal else 1

     UpperCamelCase__				=    words[start_index:]

     UpperCamelCase__				=    [word[0].upper() + word[1:] for word in words_to_capitalize]

     UpperCamelCase__				=    """""" if use_pascal else words[0]

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


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

    testmod()







def 						__magic_name__			(   __a      :	int	,		__a      :	int						):



     '''simple docstring'''




     while a != 0:
          UpperCamelCase__		,	UpperCamelCase__				=    b % a, a
     return b






def 						__magic_name__			(   __a      :	int	,		__a      :	int						):



     '''simple docstring'''




     if gcd(__a	,		__a						) != 1:
          UpperCamelCase__				=    f"mod inverse of {a!r} and {m!r} does not exist"
          raise ValueError(__a						)
     UpperCamelCase__		,	UpperCamelCase__		,	UpperCamelCase__				=    1, 0, a
     UpperCamelCase__		,	UpperCamelCase__		,	UpperCamelCase__				=    0, 1, m
     while va != 0:
          UpperCamelCase__				=    ua // va
          UpperCamelCase__		,	UpperCamelCase__		,	UpperCamelCase__		,	UpperCamelCase__		,	UpperCamelCase__		,	UpperCamelCase__				=    (ua - q * va), (ua - q * va), (ua - q * va), va, va, va
     return ua % m





