
"""simple docstring"""


def    _snake_case					(		snake_case__ :  int						,   snake_case__ :  int  ):
	if a < 0 or b < 0:
		raise ValueError('the value of both inputs must be positive'  )

	A     = str(bin(snake_case__  )  )[2:]  # remove the leading "0b"
	A     = str(bin(snake_case__  )  )[2:]  # remove the leading "0b"

	A     = max(len(snake_case__  )						,   len(snake_case__  )  )

	return "0b" + "".join(
	    str(int(char_a == '1' and char_b == '1'  )  )
	    for char_a, char_b in zip(a_binary.zfill(snake_case__  )						,   b_binary.zfill(snake_case__  )  )  )


if __name__ == "__main__":
		import doctest

		doctest.testmod()


def 		UpperCamelCase   (lowercase_:					str   )	-> Optional[Any]:
	A__				:       Optional[int]	  =						[]
	A__				:       Optional[int]	  =						set({"""(""", """[""", """{"""}   )
	A__				:       str	  =						set({""")""", """]""", """}"""}   )
	A__				:       Optional[Any]	  =						{"""{""": """}""", """[""": """]""", """(""": """)"""}

	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 		UpperCamelCase   ()	-> List[str]:
	A__				:       Optional[Any]	  =						input("""Enter sequence of brackets: """   )
	if is_balanced(lowercase_   ):
		print(lowercase_       , """is balanced"""   )
	else:
		print(lowercase_       , """is not balanced"""   )


if __name__ == "__main__":
	main()



