"""simple docstring"""
def 				lowerCAmelCase__      (     _UpperCamelCase    :			Union[str, Any]   )   ->			str:





						"""simple docstring"""






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

						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 				lowerCAmelCase__      (     )   ->			List[str]:





						"""simple docstring"""






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


if __name__ == "__main__":
					main()



"""simple docstring"""
SCREAMING_SNAKE_CASE__   =					{str(digit): digit**5 for digit in range(10)}





def 				lowerCAmelCase__      (     _UpperCamelCase    :			int   )   ->			int:





						"""simple docstring"""






						return sum(DIGITS_FIFTH_POWER[digit] for digit in str(_UpperCamelCase   )   )





def 				lowerCAmelCase__      (     )   ->			int:





						"""simple docstring"""






						return sum(
						    number
						    for number in range(1_0_0_0	,     1_0_0_0_0_0_0   )
						    if number == digits_fifth_powers_sum(_UpperCamelCase   )   )


if __name__ == "__main__":
					print(solution())


