


import operator as op



def       _lowerCAmelCase    (				lowerCAmelCase_				:List[Any]				)->str:
   '''simple docstring'''






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

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








def       _lowerCAmelCase    (				lowerCAmelCase_				:int		,    lowerCAmelCase_				:int				)->int:
   '''simple docstring'''






   return int((input_a, input_a).count(0				) == 0				)



def       _lowerCAmelCase    (				)->None:
   '''simple docstring'''






   assert and_gate(0		,    0				) == 0
   assert and_gate(0		,    1				) == 0
   assert and_gate(1		,    0				) == 0
   assert and_gate(1		,    1				) == 1


if __name__ == "__main__":
   test_and_gate()
   print(and_gate(1, 0))
   print(and_gate(0, 0))
   print(and_gate(0, 1))
   print(and_gate(1, 1))




