




import operator as op







def SCREAMING_SNAKE_CASE				(       lowercase_						)   ->       str:



       """simple docstring"""

       A__       =    []
       A__       =    lambda lowercase_ ,				lowercase_						: int(x / y						)  # noqa: E731 integer division operation
       A__       =    {
           '''^''': 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:
                     A__       =    stack.pop()  # pop stack
                     # output in tabular format
                     print(''''''.rjust(8						) ,				('''pop(''' + b + ''')''').ljust(12						) ,				''','''.join(lowercase_						) ,				sep=''' | '''						)

                     A__       =    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__":
  _lowerCamelCase	:		List[Any]							       =   input("""\n\nEnter a Postfix Equation (space separated) = """).split(""" """)
  print("""\n\tResult = """, solve(Postfix))








from __future__ import annotations

import typing
from collections.abc import Iterable

import numpy as np

_lowerCamelCase	:		str							       =   typing.Union[Iterable[float], Iterable[int], np.ndarray]  # noqa: UP007
_lowerCamelCase	:		Tuple							       =   typing.Union[np.floataa, int, float]  # noqa: UP007







def SCREAMING_SNAKE_CASE				(       lowercase_ ,				lowercase_						)   ->       VectorOut:



       """simple docstring"""

       return np.sqrt(np.sum((np.asarray(lowercase_						) - np.asarray(lowercase_						)) ** 2						)						)







def SCREAMING_SNAKE_CASE				(       lowercase_ ,				lowercase_						)   ->       VectorOut:



       """simple docstring"""

       return sum((va - va) ** 2 for va, va in zip(lowercase_ ,				lowercase_						)						) ** (1 / 2)


if __name__ == "__main__":







  def SCREAMING_SNAKE_CASE				(       )   ->       None:



         """simple docstring"""

         from timeit import timeit

         print('''Without Numpy'''						)
         print(
             timeit(
                 '''euclidean_distance_no_np([1, 2, 3], [4, 5, 6])''' ,				number=10_000 ,				globals=globals() ,				)						)
         print('''With Numpy'''						)
         print(
             timeit(
                 '''euclidean_distance([1, 2, 3], [4, 5, 6])''' ,				number=10_000 ,				globals=globals() ,				)						)
  benchmark()


