




"""simple docstring"""




from __future__ import annotations







def      __UpperCAmelCase     ( __UpperCamelCase = 4	):
			__lowercase			:  Dict								=       abs(__UpperCamelCase	) or 4
			return [[1 + x + y * row_size for x in range(__UpperCamelCase	)] for y in range(__UpperCamelCase	)]







def      __UpperCAmelCase     ( __UpperCamelCase	):
			return reverse_row(transpose(__UpperCamelCase	)	)
			# OR.. transpose(reverse_column(matrix))







def      __UpperCAmelCase     ( __UpperCamelCase	):
			return reverse_row(reverse_column(__UpperCamelCase	)	)
			# OR.. reverse_column(reverse_row(matrix))







def      __UpperCAmelCase     ( __UpperCamelCase	):
			return reverse_column(transpose(__UpperCamelCase	)	)
			# OR.. transpose(reverse_row(matrix))







def      __UpperCAmelCase     ( __UpperCamelCase	):
			__lowercase			:  Dict								=       [list(__UpperCamelCase	) for x in zip(*__UpperCamelCase	)]
			return matrix







def      __UpperCAmelCase     ( __UpperCamelCase	):
			__lowercase			:  Union[str, Any]								=       matrix[::-1]
			return matrix







def      __UpperCAmelCase     ( __UpperCamelCase	):
			__lowercase			:  Dict								=       [x[::-1] for x in matrix]
			return matrix







def      __UpperCAmelCase     ( __UpperCamelCase	):
			for i in matrix:
						print(*__UpperCamelCase	)


if __name__ == "__main__":
			a_        =       make_matrix()
			print('\norigin:\n')
			print_matrix(matrix)
			print('\nrotate 90 counterclockwise:\n')
			print_matrix(rotate_aa(matrix))

			a_        =       make_matrix()
			print('\norigin:\n')
			print_matrix(matrix)
			print('\nrotate 180:\n')
			print_matrix(rotate_aaa(matrix))

			a_        =       make_matrix()
			print('\norigin:\n')
			print_matrix(matrix)
			print('\nrotate 270 counterclockwise:\n')
			print_matrix(rotate_aaa(matrix))





'''simple docstring'''





import operator as op







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

      UpperCAmelCase__      :					List[Any]				       =							stack.pop()  # pop stack
      # output in tabular format
      print("".rjust(8		)   ,       ("pop(" + a + ")").ljust(1_2		)   ,       ",".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(1_2		)   ,       ",".join(lowercase__		)   ,       sep=" | "   ,       )

  return int(stack[0]		)


if __name__ == "__main__":
      SCREAMING_SNAKE_CASE     =       input("""\n\nEnter a Postfix Equation (space separated) = """).split(""" """)
      print("""\n\tResult = """, solve(Postfix))



