



"""simple docstring"""
import operator as op
def    A_  (			_lowercase	):







						'''simple docstring'''


						snake_case_ :Tuple						=			[]
						snake_case_ :Dict						=			lambda _lowercase,					_lowercase	: int(x / y	)  # noqa: E731 integer division operation
						snake_case_ :List[str]						=			{
						    """^""": 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(_lowercase	))	)

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

																		snake_case_ :List[str]						=			stack.pop()  # pop stack
																		# output in tabular format
																		print("""""".rjust(8	),					("""pop(""" + a + """)""").ljust(12	),					""",""".join(_lowercase	),					sep=""" | """	)

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

						return int(stack[0]	)


if __name__ == "__main__":
						__a      =				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_tokenizers_available, is_torch_available


__a      =				{
    "configuration_altclip": [
        "ALTCLIP_PRETRAINED_CONFIG_ARCHIVE_MAP",
        "AltCLIPConfig",
        "AltCLIPTextConfig",
        "AltCLIPVisionConfig",
    ],
    "processing_altclip": ["AltCLIPProcessor"],
}

try:
						if not is_torch_available():
												raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
						pass
else:
						__a      =				[
						    "ALTCLIP_PRETRAINED_MODEL_ARCHIVE_LIST",
						    "AltCLIPPreTrainedModel",
						    "AltCLIPModel",
						    "AltCLIPTextModel",
						    "AltCLIPVisionModel",
						]


if TYPE_CHECKING:
						from .configuration_altclip import (
						    ALTCLIP_PRETRAINED_CONFIG_ARCHIVE_MAP,
						    AltCLIPConfig,
						    AltCLIPTextConfig,
						    AltCLIPVisionConfig,
						)
						from .processing_altclip import AltCLIPProcessor

						try:
												if not is_torch_available():
																		raise OptionalDependencyNotAvailable()
						except OptionalDependencyNotAvailable:
												pass
						else:
												from .modeling_altclip import (
												    ALTCLIP_PRETRAINED_MODEL_ARCHIVE_LIST,
												    AltCLIPModel,
												    AltCLIPPreTrainedModel,
												    AltCLIPTextModel,
												    AltCLIPVisionModel,
												)


else:
						import sys

						__a      =				_LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)
