





def 				__lowerCAmelCase(       _SCREAMING_SNAKE_CASE				)							-> Tuple:




    """simple docstring"""




    _A     =							[]
    _A     =							set({'(', '[', '{'}				)
    _A     =							set({')', ']', '}'}				)
    _A     =							{"""{""": """}""", """[""": """]""", """(""": """)"""}

    for i in range(len(_SCREAMING_SNAKE_CASE				)				):
        if s[i] in open_brackets:
            stack.append(s[i]				)

        elif s[i] in closed_brackets and (
            len(_SCREAMING_SNAKE_CASE				) == 0 or (len(_SCREAMING_SNAKE_CASE				) > 0 and open_to_closed[stack.pop()] != s[i])
        ):
            return False

    return len(_SCREAMING_SNAKE_CASE				) == 0





def 				__lowerCAmelCase(       )							-> Optional[int]:




    """simple docstring"""




    _A     =							input('Enter sequence of brackets: '				)
    if is_balanced(_SCREAMING_SNAKE_CASE				):
        print(_SCREAMING_SNAKE_CASE							,     'is balanced'				)
    else:
        print(_SCREAMING_SNAKE_CASE							,     'is not balanced'				)


if __name__ == "__main__":
 main()








"""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>""")

