
"""simple docstring"""




import operator as op

def lowercase_						(     _snake_case		):
							SCREAMING_SNAKE_CASE__		: int     =     []
							SCREAMING_SNAKE_CASE__		: Union[str, Any]     =     lambda _snake_case     ,_snake_case		: int(x / y		)  # noqa: E731 integer division operation
							SCREAMING_SNAKE_CASE__		: int     =     {
							    """^""": 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(_snake_case		))		)

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

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

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

							return int(stack[0]		)


if __name__ == "__main__":
					UpperCAmelCase__   :					Union[str, Any]												=				input('\n\nEnter a Postfix Equation (space separated) = ').split(' ')
					print('\n\tResult = ', solve(Postfix))





"""simple docstring"""




import torch

def lowercase_						(     ):
							if torch.cuda.is_available():
														SCREAMING_SNAKE_CASE__		: List[Any]     =     torch.cuda.device_count()
							else:
														SCREAMING_SNAKE_CASE__		: int     =     0
							print(f'''Successfully ran on {num_gpus} GPUs'''		)


if __name__ == "__main__":
					main()




