
'''simple docstring'''
import operator as op







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






'''simple docstring'''
from string import ascii_lowercase, ascii_uppercase







def 		A_(     A						:		str):
							if not sentence:
														return ""
							UpperCamelCase   			=     dict(zip(A		,     A))
							return lower_to_upper.get(sentence[0]		,     sentence[0]) + sentence[1:]


if __name__ == "__main__":
						from doctest import testmod

						testmod()




