






'''simple docstring'''




from __future__ import annotations

from typing import Any

def 					__lowercase						(			__lowercase       )       ->						int:

      '''simple docstring'''


      if not postfix_notation:
            return 0

      _A			     =	{"+", "-", "*", "/"}
      _A			     =	[]

      for token in postfix_notation:
            if token in operations:
                  _A     ,	_A			     =	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(__lowercase       )       )

      return stack.pop()


if __name__ == "__main__":
    import doctest

    doctest.testmod()










'''simple docstring'''






from __future__ import annotations

import typing
from collections import Counter




def     snake_case_					(     lowerCAmelCase_		)->		typing.Counter[int]:





       '''simple docstring'''


       _UpperCAmelCase  :						typing.Counter[int]			     = Counter()
       for base in range(1       ,   max_perimeter + 1		):
              for perpendicular in range(lowerCAmelCase_       ,   max_perimeter + 1		):
                     _UpperCAmelCase  :						List[str]			     = (base * base + perpendicular * perpendicular) ** 0.5
                     if hypotenuse == int(lowerCAmelCase_		):
                            _UpperCAmelCase  :						Optional[Any]			     = int(base + perpendicular + hypotenuse		)
                            if perimeter > max_perimeter:
                                   continue
                            triplets[perimeter] += 1
       return triplets




def     snake_case_					(     lowerCAmelCase_ = 1000		)->		int:





       '''simple docstring'''


       _UpperCAmelCase  :						int			     = pythagorean_triple(lowerCAmelCase_		)
       return triplets.most_common(1		)[0][0]


if __name__ == "__main__":
   print(f"""Perimeter {solution()} has maximum solutions""")



