





"""simple docstring"""



import argparse


a_			=      """docs/source/_static/js/custom.js"""







def 		__lowercase					(       snake_case_  :  Tuple						)       ->Union[str, Any]:



    '''simple docstring'''







    with open(snake_case_    ,encoding='''utf-8'''    ,newline='''\n'''						) as f:
        __A   :						Any									=					f.readlines()
    __A   :						str									=					0

    # First let's put the right version
    while not lines[index].startswith('''const stableVersion ='''						):
        index += 1
    __A   :						Any									=					F"""const stableVersion = \"v{version}\"\n"""

    # Then update the dictionary
    while not lines[index].startswith('''const versionMapping = {'''						):
        index += 1

    # We go until the end
    while not lines[index].startswith('''}'''						):
        index += 1
    # We add the new version at the end
    lines[index - 1] += F"""    \"v{version}\": \"v{version}\",\n"""

    with open(snake_case_    ,'''w'''    ,encoding='''utf-8'''    ,newline='''\n'''						) as f:
        f.writelines(snake_case_						)


if __name__ == "__main__":
       a_			=      argparse.ArgumentParser()
       parser.add_argument("""--version""", help="""Release version.""")
       a_			=      parser.parse_args()
       update_custom_js(args.version)











"""simple docstring"""



def 		__lowercase					(       snake_case_  :  int						)       ->Optional[Any]:



    '''simple docstring'''







    stooge(snake_case_    ,0    ,len(snake_case_						) - 1						)
    return arr







def 		__lowercase					(       snake_case_  :  Optional[Any]    ,snake_case_  :  Union[str, Any]    ,snake_case_  :  Any						)       ->Tuple:



    '''simple docstring'''







    if i >= h:
        return

    # If first element is smaller than the last then swap them
    if arr[i] > arr[h]:
        __A			,	__A   :						Optional[int]									=					arr[h], arr[i]

    # If there are more than 2 elements in the array
    if h - i + 1 > 2:
        __A   :						Any									=					(int)((h - i + 1) / 3						)

        # Recursively sort first 2/3 elements
        stooge(snake_case_    ,snake_case_    ,(h - t)						)

        # Recursively sort last 2/3 elements
        stooge(snake_case_    ,i + t    ,(snake_case_)						)

        # Recursively sort first 2/3 elements
        stooge(snake_case_    ,snake_case_    ,(h - t)						)


if __name__ == "__main__":
       a_			=      input("""Enter numbers separated by a comma:\n""").strip()
       a_			=      [int(item) for item in user_input.split(""",""")]
       print(stooge_sort(unsorted))




