





import operator as op






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

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

						SCREAMING_SNAKE_CASE__			=      stack.pop()  # pop stack
						# output in tabular format
						print("""""".rjust(8    )					,   ("""pop(""" + a + """)""").ljust(12    )					,   """,""".join(UpperCamelCase__    )					,   sep=""" | """    )

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

		return int(stack[0]    )


if __name__ == "__main__":
	_lowerCamelCase   				=			input('\n\nEnter a Postfix Equation (space separated) = ').split(' ')
	print('\n\tResult = ', solve(Postfix))






from ...configuration_utils import PretrainedConfig
from ...utils import logging


_lowerCamelCase   				=			logging.get_logger(__name__)




class   UpperCamelCase_       (     UpperCamelCase__    ):
							lowerCamelCase_           =					"timm_backbone"


							def __init__(							self    :Union[str, Any]							,				__A    :str=None							,				__A    :Union[str, Any]=3							,				__A    :str=True							,				__A    :Any=True							,				__A    :Optional[Any]=None							,				**__A    :List[str]							,				)   ->   Tuple:



									"""simple docstring"""



									super().__init__(**__A		)
									SCREAMING_SNAKE_CASE__			=      backbone
									SCREAMING_SNAKE_CASE__			=      num_channels
									SCREAMING_SNAKE_CASE__			=      features_only
									SCREAMING_SNAKE_CASE__			=      use_pretrained_backbone
									SCREAMING_SNAKE_CASE__			=      True
									SCREAMING_SNAKE_CASE__			=      out_indices if out_indices is not None else (-1,)