'''simple docstring'''





def 						__A							(     UpperCAmelCase     ,UpperCAmelCase					)     ->			Any:




						'''simple docstring'''
						if a < 0 or b < 0:
												raise ValueError("the value of both inputs must be positive"					)

						_UpperCamelCase			:			str   			=						str(bin(__A					)					)[2:]  # remove the leading "0b"
						_UpperCamelCase			:			Dict   			=						str(bin(__A					)					)[2:]  # remove the leading "0b"

						_UpperCamelCase			:			Optional[Any]   			=						max(len(__A					)     ,len(__A					)					)

						return "0b" + "".join(
						    str(int(char_a != char_b					)					)
						    for char_a, char_b in zip(a_binary.zfill(__A					)     ,b_binary.zfill(__A					)					)					)


if __name__ == "__main__":
			import doctest

			doctest.testmod()



'''simple docstring'''





def 						__A							(     UpperCAmelCase					)     ->			List[Any]:




						'''simple docstring'''
						_UpperCamelCase			:			str   			=						[]
						_UpperCamelCase			:			Optional[Any]   			=						set({"(", "[", "{"}					)
						_UpperCamelCase			:			int   			=						set({")", "]", "}"}					)
						_UpperCamelCase			:			Dict   			=						{"{": "}", "[": "]", "(": ")"}

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

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

						return len(UpperCAmelCase					) == 0
def 						__A							(     )     ->			str:




						'''simple docstring'''
						_UpperCamelCase			:			Any   			=						input("Enter sequence of brackets: "					)
						if is_balanced(UpperCAmelCase					):
												print(UpperCAmelCase     ,"is balanced"					)
						else:
												print(UpperCAmelCase     ,"is not balanced"					)


if __name__ == "__main__":
			main()


