
"""simple docstring"""







def   __UpperCamelCase   (					SCREAMING_SNAKE_CASE = 1							,    SCREAMING_SNAKE_CASE = 10_00 )  ->     int:







							"""simple docstring"""


							__snake_case     			=       1
							__snake_case     			=       0

							for divide_by_number in range(SCREAMING_SNAKE_CASE							,    digit + 1 ):
														__snake_case     			=       []
														__snake_case     			=       numerator
														for _ in range(1							,    digit + 1 ):
																					if now_divide in has_been_divided:
																												if longest_list_length < len(SCREAMING_SNAKE_CASE ):
																																			__snake_case     			=       len(SCREAMING_SNAKE_CASE )
																																			__snake_case     			=       divide_by_number
																					else:
																												has_been_divided.append(SCREAMING_SNAKE_CASE )
																												__snake_case     			=       now_divide * 10 % divide_by_number

							return the_digit


# Tests
if __name__ == "__main__":
		import doctest

		doctest.testmod()


"""simple docstring"""







from __future__ import annotations

from typing import Any
def   __UpperCamelCase   (					SCREAMING_SNAKE_CASE )  ->     int:







							"""simple docstring"""


							if not postfix_notation:
														return 0

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

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