


'''simple docstring'''



from __future__ import annotations

from typing import Any






def   lowerCamelCase							(_SCREAMING_SNAKE_CASE      :   list   ):
					if not postfix_notation:
										return 0

					__a			:       Optional[Any]					    =  {'+', '-', '*', '/'}
					__a			:       list[Any]					    =  []

					for token in postfix_notation:
										if token in operations:
															__a    ,				__a			:       List[Any]					    =  stack.pop(), stack.pop()
															if token == "+":
																				stack.append(a + b   )
															elif token == "-":
																				stack.append(a - b   )
															elif token == "*":
																				stack.append(a * b   )
															else:
																				if a * b < 0 and a % b != 0:
																									stack.append(a // b + 1   )
																				else:
																									stack.append(a // b   )
										else:
															stack.append(int(_SCREAMING_SNAKE_CASE   )   )

					return stack.pop()


if __name__ == "__main__":
	import doctest

	doctest.testmod()




"""simple docstring"""






from __future__ import annotations


def 			UpperCAmelCase__       (				lowerCAmelCase__     :list[int]		) ->    int:
      '''simple docstring'''


      if not nums:
            return 0
      lowercase														=	nums[0]
      lowercase														=	0
      for num in nums[1:]:
            lowercase							,							lowercase														=	(
                max_excluding + num,
                max(lowerCAmelCase__					,		lowerCAmelCase__		),
            )
      return max(lowerCAmelCase__					,		lowerCAmelCase__		)


if __name__ == "__main__":
       import doctest

       doctest.testmod()



