


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


def       a				(      __a       )  ->     List[Any]:



					'''simple docstring'''






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

															UpperCamelCase__       :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__":
		__snake_case											=					input('''\n\nEnter a Postfix Equation (space separated) = ''').split(''' ''')
		print('''\n\tResult = ''', solve(Postfix))



'''simple docstring'''
from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


__snake_case											=					{'''configuration_vit_msn''': ['''VIT_MSN_PRETRAINED_CONFIG_ARCHIVE_MAP''', '''ViTMSNConfig''']}

try:
		if not is_torch_available():
				raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
		pass
else:
		__snake_case											=					[
		    '''VIT_MSN_PRETRAINED_MODEL_ARCHIVE_LIST''',
		    '''ViTMSNModel''',
		    '''ViTMSNForImageClassification''',
		    '''ViTMSNPreTrainedModel''',
		]

if TYPE_CHECKING:
		from .configuration_vit_msn import VIT_MSN_PRETRAINED_CONFIG_ARCHIVE_MAP, ViTMSNConfig

		try:
				if not is_torch_available():
						raise OptionalDependencyNotAvailable()
		except OptionalDependencyNotAvailable:
				pass
		else:
				from .modeling_vit_msn import (
				    VIT_MSN_PRETRAINED_MODEL_ARCHIVE_LIST,
				    ViTMSNForImageClassification,
				    ViTMSNModel,
				    ViTMSNPreTrainedModel,
				)

else:
		import sys

		__snake_case											=					_LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)