





"""simple docstring"""




from __future__ import annotations






def  _SCREAMING_SNAKE_CASE						(      _lowercase		:       list[float]   )					->bool:






	'''simple docstring'''






	if len(_lowercase   ) < 2:
		raise ValueError("Monogons and Digons are not polygons in the Euclidean space"   )
	if any(i <= 0 for i in nums   ):
		raise ValueError("All values must be greater than 0"   )
	a :						List[Any]      =							nums.copy()
	copy_nums.sort()
	return copy_nums[-1] < sum(copy_nums[:-1]   )


if __name__ == "__main__":
		import doctest

		doctest.testmod()









"""simple docstring"""




def  _SCREAMING_SNAKE_CASE						(      _lowercase		:       Tuple   )					->Optional[Any]:






	'''simple docstring'''






	a :						Any      =							[]
	a :						List[str]      =							set({"(", "[", "{"}   )
	a :						int      =							set({")", "]", "}"}   )
	a :						int      =							{"{": "}", "[": "]", "(": ")"}

	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						(      )					->Tuple:






	'''simple docstring'''






	a :						Any      =							input("Enter sequence of brackets: "   )
	if is_balanced(_lowercase   ):
		print(_lowercase       ,			"is balanced"   )
	else:
		print(_lowercase       ,			"is not balanced"   )


if __name__ == "__main__":
		main()


