






import operator as op

def     snake_case   (UpperCAmelCase__    )			->							str:
  UpperCamelCase_:   Tuple        =							[]
  UpperCamelCase_:   Tuple        =							lambda UpperCAmelCase__      ,       UpperCAmelCase__    : int(x / y    )  # noqa: E731 integer division operation
  UpperCamelCase_:   List[str]        =							{
      '^': 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:
      UpperCamelCase_:   Tuple        =							stack.pop()  # pop stack
      # output in tabular format
      print(''.rjust(8    )      ,       ('pop(' + b + ')').ljust(1_2    )      ,       ','.join(lowerCAmelCase_    )      ,       sep=' | '    )

      UpperCamelCase_:   List[str]        =							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))






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))
