





'''simple docstring'''

import operator as op




def    _a    (							lowerCAmelCase_	):





      """simple docstring"""



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

                  _snake_case		:	Optional[Any]					     =     stack.pop()  # pop stack
                  # output in tabular format
                  print(''''''.rjust(8	)			,      ('''pop(''' + a + ''')''').ljust(12	)			,      ''','''.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(12	)			,      ''','''.join(lowerCAmelCase_	)			,      sep=''' | '''			,      )

      return int(stack[0]	)


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











'''simple docstring'''

from argparse import ArgumentParser

from .add_new_model import AddNewModelCommand
from .add_new_model_like import AddNewModelLikeCommand
from .convert import ConvertCommand
from .download import DownloadCommand
from .env import EnvironmentCommand
from .lfs import LfsCommands
from .pt_to_tf import PTtoTFCommand
from .run import RunCommand
from .serving import ServeCommand
from .user import UserCommands




def    _a    (							):





      """simple docstring"""



      _snake_case		:	List[Any]					     =     ArgumentParser('''Transformers CLI tool'''			,      usage='''transformers-cli <command> [<args>]'''	)
      _snake_case		:	List[str]					     =     parser.add_subparsers(help='''transformers-cli command helpers'''	)

      # Register commands
      ConvertCommand.register_subcommand(lowerCAmelCase_	)
      DownloadCommand.register_subcommand(lowerCAmelCase_	)
      EnvironmentCommand.register_subcommand(lowerCAmelCase_	)
      RunCommand.register_subcommand(lowerCAmelCase_	)
      ServeCommand.register_subcommand(lowerCAmelCase_	)
      UserCommands.register_subcommand(lowerCAmelCase_	)
      AddNewModelCommand.register_subcommand(lowerCAmelCase_	)
      AddNewModelLikeCommand.register_subcommand(lowerCAmelCase_	)
      LfsCommands.register_subcommand(lowerCAmelCase_	)
      PTtoTFCommand.register_subcommand(lowerCAmelCase_	)

      # Let's go
      _snake_case		:	str					     =     parser.parse_args()

      if not hasattr(lowerCAmelCase_			,      '''func'''	):
            parser.print_help()
            exit(1	)

      # Run
      _snake_case		:	Union[str, Any]					     =     args.func(lowerCAmelCase_	)
      service.run()


if __name__ == "__main__":
   main()


