





from __future__ import annotations





def 				__lowerCAmelCase(       _SCREAMING_SNAKE_CASE				)							-> list[int]:  # This function is recursive




    """simple docstring"""




    _A     =							len(_SCREAMING_SNAKE_CASE				)
    # If the array contains only one element, we return it (it's the stop condition of
    # recursion)
    if array_length <= 1:
        return array
        # Else
    _A     =							array[0]
    _A     =							False
    _A     =							1
    _A     =							[]
    while not is_found and i < array_length:
        if array[i] < pivot:
            _A     =							True
            _A     =							[element for element in array[i:] if element >= array[i]]
            _A     =							longest_subsequence(_SCREAMING_SNAKE_CASE				)
            if len(_SCREAMING_SNAKE_CASE				) > len(_SCREAMING_SNAKE_CASE				):
                _A     =							temp_array
        else:
            i += 1

    _A     =							[element for element in array[1:] if element >= pivot]
    _A     =							[pivot, *longest_subsequence(_SCREAMING_SNAKE_CASE				)]
    if len(_SCREAMING_SNAKE_CASE				) > len(_SCREAMING_SNAKE_CASE				):
        return temp_array
    else:
        return longest_subseq


if __name__ == "__main__":
 import doctest

 doctest.testmod()








"""simple docstring"""
import requests




def 					a__						(						lowerCAmelCase			,	lowerCAmelCase    )	-> None:
      UpperCAmelCase__			:							List[str]							=    {"""Content-Type""": """application/json"""}
      UpperCAmelCase__			:							List[str]							=    requests.post(lowerCAmelCase			,	json={"""text""": message_body}			,	headers=lowerCAmelCase    )
      if response.status_code != 2_00:
            UpperCAmelCase__			:							str							=    (
                """Request to slack returned an error """
                F"""{response.status_code}, the response is:\n{response.text}"""
            )
            raise ValueError(lowerCAmelCase    )


if __name__ == "__main__":
    # Set the slack url to the one provided by Slack when you create the webhook at
    # https://my.slack.com/services/new/incoming-webhook/
    send_slack_message("""<YOUR MESSAGE BODY>""", """<SLACK CHANNEL URL>""")

