


import operator as op






def   _lowercase(					__a				:						List[Any]     ):
							a__      =[]
							a__      =lambda __a    ,     __a     : int(x / y     )  # noqa: E731 integer division operation
							a__      ={
							    '^': 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:
																					a__      =stack.pop()  # pop stack
																					# output in tabular format
																					print(''.rjust(8     )    ,     ('pop(' + b + ')').ljust(12     )    ,     ','.join(__a     )    ,     sep=' | '     )

																					a__      =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:						List[Any]   				=       input('\n\nEnter a Postfix Equation (space separated) = ').split(' ')
	print('\n\tResult = ', solve(Postfix))









"""simple docstring"""
from ...utils import is_torch_available, is_transformers_available


if is_transformers_available() and is_torch_available():
			from .pipeline_vq_diffusion import LearnedClassifierFreeSamplingEmbeddings, VQDiffusionPipeline

