


"""simple docstring"""
def   _a			( _SCREAMING_SNAKE_CASE			)      ->			str:
							snake_case_          =						[]
							snake_case_          =						set({"""(""", """[""", """{"""}			)
							snake_case_          =						set({""")""", """]""", """}"""}			)
							snake_case_          =						{"""{""": """}""", """[""": """]""", """(""": """)"""}

							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   _a			( )      ->			Tuple:
							snake_case_          =						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"""
def   _a			( _SCREAMING_SNAKE_CASE			,	_SCREAMING_SNAKE_CASE			)      ->			str:
							return "\n".join(
							    f"""{number} * {i} = {number * i}""" for i in range(1			,	number_of_terms + 1			)			)


if __name__ == "__main__":
				print(multiplication_table(number=5, number_of_terms=10))



