





import operator as op







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

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











from __future__ import annotations







def  _SCREAMING_SNAKE_CASE				(   a  )      ->      int:
					if not nums:
										return 0
					__A	:						Optional[int]       =				nums[0]
					__A	:						str       =				0
					for num in nums[1:]:
										__A    ,				__A	:						Tuple       =				(
										    max_excluding + num,
										    max(a					,						a  ),
										)
					return max(a					,						a  )


if __name__ == "__main__":
				import doctest

				doctest.testmod()




