






'''simple docstring'''


import operator as op







def 	__magic_name__( _A					):
						'''simple docstring'''





						UpperCamelCase__         = []
						UpperCamelCase__         = lambda _A						,      _A					: int(x / y					)  # noqa: E731 integer division operation
						UpperCamelCase__         = {
						    """^""": 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(_A					))					)

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

																		UpperCamelCase__         = stack.pop()  # pop stack
																		# output in tabular format
																		print("""""".rjust(8					)						,      ("""pop(""" + a + """)""").ljust(12					)						,      """,""".join(_A					)						,      sep=""" | """					)

																		stack.append(
																		    str(opr[x](int(_A					)						,      int(_A					)					)					)					)  # 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(_A					)						,      sep=""" | """						,      )

						return int(stack[0]					)


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








'''simple docstring'''


import inspect
import unittest
class    _SCREAMING_SNAKE_CASE							(		unittest.TestCase	):


			'''simple docstring'''





			def 				A      (   self							:						Tuple			)							->    Any:

									'''simple docstring'''







									try:
															import diffusers  # noqa: F401
									except ImportError:
															assert False







			def 				A      (   self							:						Optional[int]			)							->    Union[str, Any]:

									'''simple docstring'''







									import diffusers
									from diffusers.dependency_versions_table import deps

									UpperCamelCase__         = inspect.getmembers(lowercase ,      inspect.isclass			)

									for cls_name, cls_module in all_classes:
															if "dummy_" in cls_module.__module__:
																					for backend in cls_module._backends:
																											if backend == "k_diffusion":
																																	UpperCamelCase__         = """k-diffusion"""
																											elif backend == "invisible_watermark":
																																	UpperCamelCase__         = """invisible-watermark"""
																											assert backend in deps, f"{backend} is not in the deps table!"
