




"""simple docstring"""







import operator as op

def 						snake_case__       (					_lowerCamelCase				)			->Optional[int]:






		"""simple docstring"""


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

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







"""simple docstring"""







def 						snake_case__       (					_lowerCamelCase				)			->int:






		"""simple docstring"""


		if a < 0:
				raise ValueError("Input value must be a positive integer"				)
		elif isinstance(_lowerCamelCase,  _lowerCamelCase				):
				raise TypeError("Input value must be a 'int' type"				)
		return bin(_lowerCamelCase				).count("1"				)


if __name__ == "__main__":
						import doctest

						doctest.testmod()
