
"""simple docstring"""
from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available, is_vision_available


lowercase_       :						Optional[Any]     					=	{
    """configuration_chinese_clip""": [
        """CHINESE_CLIP_PRETRAINED_CONFIG_ARCHIVE_MAP""",
        """ChineseCLIPConfig""",
        """ChineseCLIPOnnxConfig""",
        """ChineseCLIPTextConfig""",
        """ChineseCLIPVisionConfig""",
    ],
    """processing_chinese_clip""": ["""ChineseCLIPProcessor"""],
}

try:
      if not is_vision_available():
            raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
      pass
else:
      lowercase_       :						Optional[Any]     					=	["""ChineseCLIPFeatureExtractor"""]
      lowercase_       :						Optional[Any]     					=	["""ChineseCLIPImageProcessor"""]

try:
      if not is_torch_available():
            raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
      pass
else:
      lowercase_       :						Dict     					=	[
          """CHINESE_CLIP_PRETRAINED_MODEL_ARCHIVE_LIST""",
          """ChineseCLIPModel""",
          """ChineseCLIPPreTrainedModel""",
          """ChineseCLIPTextModel""",
          """ChineseCLIPVisionModel""",
      ]

if TYPE_CHECKING:
      from .configuration_chinese_clip import (
          CHINESE_CLIP_PRETRAINED_CONFIG_ARCHIVE_MAP,
          ChineseCLIPConfig,
          ChineseCLIPOnnxConfig,
          ChineseCLIPTextConfig,
          ChineseCLIPVisionConfig,
      )
      from .processing_chinese_clip import ChineseCLIPProcessor

      try:
            if not is_vision_available():
                  raise OptionalDependencyNotAvailable()
      except OptionalDependencyNotAvailable:
            pass
      else:
            from .feature_extraction_chinese_clip import ChineseCLIPFeatureExtractor, ChineseCLIPImageProcessor

      try:
            if not is_torch_available():
                  raise OptionalDependencyNotAvailable()
      except OptionalDependencyNotAvailable:
            pass
      else:
            from .modeling_chinese_clip import (
                CHINESE_CLIP_PRETRAINED_MODEL_ARCHIVE_LIST,
                ChineseCLIPModel,
                ChineseCLIPPreTrainedModel,
                ChineseCLIPTextModel,
                ChineseCLIPVisionModel,
            )

else:
      import sys

      lowercase_       :						str     					=	_LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)





"""simple docstring"""
import operator as op





def    _lowerCAmelCase    (     lowerCamelCase__							:							Tuple				)  ->    List[str]:
  _SCREAMING_SNAKE_CASE   :				Optional[int]							    = []
  _SCREAMING_SNAKE_CASE   :				str							    = lambda lowerCamelCase__,						lowerCamelCase__				: int(x / y				)  # noqa: E731 integer division operation
  _SCREAMING_SNAKE_CASE   :				Any							    = {
      "^": op.pow,
      "*": op.mul,
      "/": div,
      "+": op.add,
      "-": op.sub,
  }  # operators & their respective operation

  # print table header
  print("Symbol".center(8				),						"Action".center(1_2				),						"Stack",						sep=" | "				)
  print("-" * (3_0 + len(lowerCamelCase__				))				)

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

      _SCREAMING_SNAKE_CASE   :				Any							    = stack.pop()  # pop stack
      # output in tabular format
      print("".rjust(8				),						("pop(" + a + ")").ljust(1_2				),						",".join(lowerCamelCase__				),						sep=" | "				)

      stack.append(
          str(opr[x](int(lowerCamelCase__				),						int(lowerCamelCase__				)				)				)				)  # evaluate the 2 values popped from stack & push result to stack
      # output in tabular format
      print(
          x.rjust(8				),						("push(" + a + x + b + ")").ljust(1_2				),						",".join(lowerCamelCase__				),						sep=" | ",						)

  return int(stack[0]				)


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



