




def 					__SCREAMING_SNAKE_CASE   (  lowercase_      )       ->	Optional[Any]:

    """simple docstring"""


    __UpperCamelCase  		=						[]
    __UpperCamelCase  		=						set({'''(''', '''[''', '''{'''}      )
    __UpperCamelCase  		=						set({''')''', ''']''', '''}'''}      )
    __UpperCamelCase  		=						{'''{''': '''}''', '''[''': ''']''', '''(''': ''')'''}

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

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

    return len(lowercase_      ) == 0




def 					__SCREAMING_SNAKE_CASE   (  )       ->	int:

    """simple docstring"""


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


if __name__ == "__main__":
 main()












from abc import ABC, abstractmethod
from argparse import ArgumentParser

class  _lowerCamelCase						(			_SCREAMING_SNAKE_CASE   ):

      """simple docstring"""

      @staticmethod
      @abstractmethod
      def       snake_case	(     snake_case					: ArgumentParser				):
          raise NotImplementedError()







      @abstractmethod
      def       snake_case	(     self					: Optional[Any]				):
          raise NotImplementedError()






