

import re



def  _A  (			SCREAMING_SNAKE_CASE			):
	def docstring_decorator(SCREAMING_SNAKE_CASE			):
		UpperCAmelCase__:  List[str]		       =   fn.__doc__
		UpperCAmelCase__:  Optional[int]		       =   func_doc.split("\n"			)
		UpperCAmelCase__:  Optional[int]		       =   0
		while i < len(SCREAMING_SNAKE_CASE			) and re.search(R"^\s*Examples?:\s*$"  ,lines[i]			) is None:
			i += 1
		if i < len(SCREAMING_SNAKE_CASE			):
			UpperCAmelCase__:  Union[str, Any]		       =   example_docstring
			UpperCAmelCase__:  str		       =   "\n".join(SCREAMING_SNAKE_CASE			)
		else:
			raise ValueError(
			    f"The function {fn} should have an empty 'Examples:' in its docstring as placeholder, "
			    f"current docstring is:\n{func_doc}"			)
		UpperCAmelCase__:  Optional[int]		       =   func_doc
		return fn

	return docstring_decorator






_lowerCAmelCase     :			Optional[int]    ={
    """+""": lambda x, y: x + y,
    """-""": lambda x, y: x - y,
    """*""": lambda x, y: x * y,
    """/""": lambda x, y: x / y,
}



def  _A  (			SCREAMING_SNAKE_CASE			):
	return c.isdigit()



def  _A  (			SCREAMING_SNAKE_CASE			):
	UpperCAmelCase__:  str		       =   []

	# iterate over the string in reverse order
	for c in expression.split()[::-1]:
		# push operand to stack
		if is_operand(SCREAMING_SNAKE_CASE			):
			stack.append(int(SCREAMING_SNAKE_CASE			)			)

		else:
			# pop values from stack can calculate the result
			# push the result onto the stack again
			UpperCAmelCase__:  Any		       =   stack.pop()
			UpperCAmelCase__:  int		       =   stack.pop()
			stack.append(calc[c](SCREAMING_SNAKE_CASE  ,SCREAMING_SNAKE_CASE			)			)

	return stack.pop()


# Driver code
if __name__ == "__main__":
					_lowerCAmelCase     :			Optional[int]    ="""+ 9 * 2 6"""
					print(evaluate(test_expression))

					_lowerCAmelCase     :			Optional[Any]    ="""/ * 10 2 + 4 1 """
					print(evaluate(test_expression))