


_lowerCamelCase     =  'Alexander Joslin'

import operator as op

from .stack import Stack


def __lowercase     (      lowerCamelCase_  :      Tuple  ):
				SCREAMING_SNAKE_CASE__     							=				{"*": op.mul, "/": op.truediv, "+": op.add, "-": op.sub}

				SCREAMING_SNAKE_CASE__     							=				Stack()
				SCREAMING_SNAKE_CASE__     							=				Stack()

				for i in equation:
								if i.isdigit():
												# RULE 1
												operand_stack.push(int(__snake_case  )  )
								elif i in operators:
												# RULE 2
												operator_stack.push(__snake_case  )
								elif i == ")":
												# RULE 4
												SCREAMING_SNAKE_CASE__     							=				operator_stack.peek()
												operator_stack.pop()
												SCREAMING_SNAKE_CASE__     							=				operand_stack.peek()
												operand_stack.pop()
												SCREAMING_SNAKE_CASE__     							=				operand_stack.peek()
												operand_stack.pop()

												SCREAMING_SNAKE_CASE__     							=				operators[opr](__snake_case						,					__snake_case  )
												operand_stack.push(__snake_case  )

    # RULE 5
				return operand_stack.peek()


if __name__ == "__main__":
	_lowerCamelCase     =  '(5 + ((4 * 2) * (2 + 3)))'
	# answer = 45
	print(f"""{equation} = {dijkstras_two_stack_algorithm(equation)}""")




"""simple docstring"""






from math import factorial


def __lowercase     (      lowerCamelCase_  :      int = 100  ):
				return sum(int(lowerCamelCase_  ) for x in str(factorial(lowerCamelCase_  )  )  )


if __name__ == "__main__":
	print(solution(int(input('Enter the Number: ').strip())))
