






"""simple docstring"""
from ... import PretrainedConfig


lowerCamelCase_							      = {
    '''sijunhe/nezha-cn-base''': '''https://huggingface.co/sijunhe/nezha-cn-base/resolve/main/config.json''',
}







class      UpperCamelCase_			(__A	):
	__magic_name__       =							NEZHA_PRETRAINED_CONFIG_ARCHIVE_MAP
	__magic_name__       =							'''nezha'''





	def __init__( self   :					str      ,      lowerCAmelCase_   :					str=21_128      ,      lowerCAmelCase_   :					Dict=768      ,      lowerCAmelCase_   :					Tuple=12      ,      lowerCAmelCase_   :					Any=12      ,      lowerCAmelCase_   :					List[str]=3_072      ,      lowerCAmelCase_   :					Union[str, Any]="gelu"      ,      lowerCAmelCase_   :					Tuple=0.1      ,      lowerCAmelCase_   :					Any=0.1      ,      lowerCAmelCase_   :					List[str]=512      ,      lowerCAmelCase_   :					Union[str, Any]=64      ,      lowerCAmelCase_   :					List[Any]=2      ,      lowerCAmelCase_   :					Union[str, Any]=0.0_2      ,      lowerCAmelCase_   :					Dict=1e-12      ,      lowerCAmelCase_   :					Optional[int]=0.1      ,      lowerCAmelCase_   :					Optional[Any]=0      ,      lowerCAmelCase_   :					Tuple=2      ,      lowerCAmelCase_   :					Optional[Any]=3      ,      lowerCAmelCase_   :					List[str]=True      ,      **lowerCAmelCase_   :					str      ,      )		->     Union[str, Any]:
				super().__init__(pad_token_id=lowerCAmelCase_      ,      bos_token_id=lowerCAmelCase_      ,      eos_token_id=lowerCAmelCase_      ,      **lowerCAmelCase_		)

				UpperCAmelCase_	:					str     	=   vocab_size
				UpperCAmelCase_	:					Any     	=   hidden_size
				UpperCAmelCase_	:					Any     	=   num_hidden_layers
				UpperCAmelCase_	:					str     	=   num_attention_heads
				UpperCAmelCase_	:					Optional[Any]     	=   hidden_act
				UpperCAmelCase_	:					Optional[Any]     	=   intermediate_size
				UpperCAmelCase_	:					str     	=   hidden_dropout_prob
				UpperCAmelCase_	:					Optional[int]     	=   attention_probs_dropout_prob
				UpperCAmelCase_	:					Optional[int]     	=   max_position_embeddings
				UpperCAmelCase_	:					List[Any]     	=   max_relative_position
				UpperCAmelCase_	:					str     	=   type_vocab_size
				UpperCAmelCase_	:					List[str]     	=   initializer_range
				UpperCAmelCase_	:					Dict     	=   layer_norm_eps
				UpperCAmelCase_	:					Dict     	=   classifier_dropout
				UpperCAmelCase_	:					Union[str, Any]     	=   use_cache










import operator as op


def 							__snake_case							(    lowerCAmelCase_	)				->						str:
    SCREAMING_SNAKE_CASE__											=			[]
    SCREAMING_SNAKE_CASE__											=			lambda lowerCAmelCase_ ,							lowerCAmelCase_	: 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(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__											=			stack.pop()  # pop stack
            # output in tabular format
            print(''''''.rjust(8	) ,							('''pop(''' + b + ''')''').ljust(1_2	) ,							''','''.join(lowerCAmelCase_	) ,							sep=''' | '''	)

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