import operator as op



def      lowerCamelCase_(__SCREAMING_SNAKE_CASE  )->    str:
							_SCREAMING_SNAKE_CASE		:						List[str]			  =    []
							_SCREAMING_SNAKE_CASE		:						Optional[int]			  =    lambda __SCREAMING_SNAKE_CASE     ,	__SCREAMING_SNAKE_CASE  : int(x / y  )  # noqa: E731 integer division operation
							_SCREAMING_SNAKE_CASE		:						List[str]			  =    {
							    """^""": 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(_lowercase  ))  )

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

																					_SCREAMING_SNAKE_CASE		:						Optional[Any]			  =    stack.pop()  # pop stack
																					# output in tabular format
																					print("""""".rjust(8  )     ,	("""pop(""" + a + """)""").ljust(12  )     ,	""",""".join(_lowercase  )     ,	sep=""" | """  )

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

							return int(stack[0]  )


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



"""simple docstring"""





import argparse
from collections import defaultdict



def      lowerCamelCase_(__SCREAMING_SNAKE_CASE     ,	__SCREAMING_SNAKE_CASE     ,	__SCREAMING_SNAKE_CASE     ,	__SCREAMING_SNAKE_CASE     ,	__SCREAMING_SNAKE_CASE  )->    int:
							_SCREAMING_SNAKE_CASE		:						str			  =    F"""{file}_{class_name}_{test_name}"""
							done_test[_id] += 1

							with open(__SCREAMING_SNAKE_CASE     ,	"""r"""  ) as f:
														_SCREAMING_SNAKE_CASE		:						Union[str, Any]			  =    f.readlines()

							_SCREAMING_SNAKE_CASE		:						Optional[Any]			  =    F"""class {class_name}("""
							_SCREAMING_SNAKE_CASE		:						List[Any]			  =    F"""{4 * " "}def {test_name}("""
							_SCREAMING_SNAKE_CASE		:						Tuple			  =    F"""{8 * " "}{correct_line.split()[0]}"""
							_SCREAMING_SNAKE_CASE		:						List[Any]			  =    F"""{16 * " "}{correct_line.split()[0]}"""
							_SCREAMING_SNAKE_CASE		:						List[str]			  =    False
							_SCREAMING_SNAKE_CASE		:						Tuple			  =    False
							_SCREAMING_SNAKE_CASE		:						Union[str, Any]			  =    False
							_SCREAMING_SNAKE_CASE		:						Optional[int]			  =    False
							_SCREAMING_SNAKE_CASE		:						Any			  =    0
							_SCREAMING_SNAKE_CASE		:						Optional[Any]			  =    0

							_SCREAMING_SNAKE_CASE		:						Dict			  =    []
							for line in lines:
														if line.startswith(__SCREAMING_SNAKE_CASE  ):
																					_SCREAMING_SNAKE_CASE		:						Any			  =    True
														elif in_class and line.startswith(__SCREAMING_SNAKE_CASE  ):
																					_SCREAMING_SNAKE_CASE		:						str			  =    True
														elif in_class and in_func and (line.startswith(__SCREAMING_SNAKE_CASE  ) or line.startswith(__SCREAMING_SNAKE_CASE  )):
																					_SCREAMING_SNAKE_CASE		:						Dict			  =    len(line.split(correct_line.split()[0]  )[0]  )
																					count += 1

																					if count == done_test[_id]:
																												_SCREAMING_SNAKE_CASE		:						int			  =    True

														if in_class and in_func and in_line:
																					if ")" not in line:
																												continue
																					else:
																												_SCREAMING_SNAKE_CASE		:						Any			  =    True

														if in_class and in_func and in_line and insert_line:
																					new_lines.append(F"""{spaces * " "}{correct_line}"""  )
																					_SCREAMING_SNAKE_CASE		:						Optional[int]			  =    False
														else:
																					new_lines.append(__SCREAMING_SNAKE_CASE  )

							with open(__SCREAMING_SNAKE_CASE     ,	"""w"""  ) as f:
														for line in new_lines:
																					f.write(__SCREAMING_SNAKE_CASE  )



def      lowerCamelCase_(__SCREAMING_SNAKE_CASE     ,	__SCREAMING_SNAKE_CASE=None  )->    Optional[Any]:
							if fail is not None:
														with open(__SCREAMING_SNAKE_CASE     ,	"""r"""  ) as f:
																					_SCREAMING_SNAKE_CASE		:						Union[str, Any]			  =    {l.strip() for l in f.readlines()}
							else:
														_SCREAMING_SNAKE_CASE		:						str			  =    None

							with open(__SCREAMING_SNAKE_CASE     ,	"""r"""  ) as f:
														_SCREAMING_SNAKE_CASE		:						str			  =    f.readlines()

							_SCREAMING_SNAKE_CASE		:						str			  =    defaultdict(__SCREAMING_SNAKE_CASE  )
							for line in correct_lines:
														_SCREAMING_SNAKE_CASE  ,				_SCREAMING_SNAKE_CASE  ,				_SCREAMING_SNAKE_CASE  ,				_SCREAMING_SNAKE_CASE		:						Optional[int]			  =    line.split(""";"""  )
														if test_failures is None or "::".join([file, class_name, test_name]  ) in test_failures:
																					overwrite_file(__SCREAMING_SNAKE_CASE     ,	__SCREAMING_SNAKE_CASE     ,	__SCREAMING_SNAKE_CASE     ,	__SCREAMING_SNAKE_CASE     ,	__SCREAMING_SNAKE_CASE  )


if __name__ == "__main__":
			lowerCAmelCase_     =	argparse.ArgumentParser()
			parser.add_argument('''--correct_filename''', help='''filename of tests with expected result''')
			parser.add_argument('''--fail_filename''', help='''filename of test failures''', type=str, default=None)
			lowerCAmelCase_     =	parser.parse_args()

			main(args.correct_filename, args.fail_filename)


