






import operator as op

def    SCREAMING_SNAKE_CASE_							(							__magic_name__					:  Tuple					)		->			int:






	"""simple docstring"""



	UpperCamelCase     :Dict          =	[]
	UpperCamelCase     :Union[str, Any]          =	lambda __magic_name__	,			__magic_name__					: int(x / y					)  # noqa: E731 integer division operation
	UpperCamelCase     :Optional[Any]          =	{
	    """^""": op.pow,
	    """*""": op.mul,
	    """/""": div,
	    """+""": op.add,
	    """-""": op.sub,
	}  # operators & their respective operation

	# print table header
	print("""Symbol""".center(8					)	,			"""Action""".center(12					)	,			"""Stack"""	,			sep=""" | """					)
	print("""-""" * (30 + len(__magic_name__					))					)

	for x in post_fix:
		if x.isdigit():  # if x in digit
			stack.append(__magic_name__					)  # append x to stack
			# output in tabular format
			print(x.rjust(8					)	,			("""push(""" + x + """)""").ljust(12					)	,			""",""".join(__magic_name__					)	,			sep=""" | """					)
		else:
			UpperCamelCase     :List[Any]          =	stack.pop()  # pop stack
			# output in tabular format
			print("""""".rjust(8					)	,			("""pop(""" + b + """)""").ljust(12					)	,			""",""".join(__magic_name__					)	,			sep=""" | """					)

			UpperCamelCase     :Union[str, Any]          =	stack.pop()  # pop stack
			# output in tabular format
			print("""""".rjust(8					)	,			("""pop(""" + a + """)""").ljust(12					)	,			""",""".join(__magic_name__					)	,			sep=""" | """					)

			stack.append(
			    str(opr[x](int(__magic_name__					)	,			int(__magic_name__					)					)					)					)  # evaluate the 2 values popped from stack & push result to stack
			# output in tabular format
			print(
			    x.rjust(8					)	,			("""push(""" + a + x + b + """)""").ljust(12					)	,			""",""".join(__magic_name__					)	,			sep=""" | """	,			)

	return int(stack[0]					)


if __name__ == "__main__":
	UpperCAmelCase_ :						Tuple      =      input('''\n\nEnter a Postfix Equation (space separated) = ''').split(''' ''')
	print('''\n\tResult = ''', solve(Postfix))

# tests directory-specific settings - this file is run automatically
# by pytest before any tests are run

import sys
import warnings
from os.path import abspath, dirname, join


# allow having multiple repository checkouts and not needing to remember to rerun
# 'pip install -e .[dev]' when switching between checkouts and running tests.
__lowerCamelCase			: Any							   =		abspath(join(dirname(dirname(__file__)), '''src'''))
sys.path.insert(1, git_repo_path)

# silence FutureWarning warnings in tests since often we can't act on them until
# they become normal warnings - i.e. the tests still need to test the current functionality
warnings.simplefilter(action='''ignore''', category=FutureWarning)



def 	__SCREAMING_SNAKE_CASE  (					__UpperCamelCase    :       Optional[int]	)							->					Any:







  """simple docstring"""





  from diffusers.utils.testing_utils import pytest_addoption_shared

  pytest_addoption_shared(__UpperCamelCase	)






def 	__SCREAMING_SNAKE_CASE  (					__UpperCamelCase    :       Dict	)							->					Optional[Any]:







  """simple docstring"""





  from diffusers.utils.testing_utils import pytest_terminal_summary_main

  SCREAMING_SNAKE_CASE__										=      terminalreporter.config.getoption("""--make-reports"""	)
  if make_reports:
    pytest_terminal_summary_main(__UpperCamelCase ,     id=__UpperCamelCase	)
