


"""simple docstring"""







from math import factorial


def      lowercase			(				A_  ,   A_       )->      int:
  '''simple docstring'''







  if n < k or k < 0:
    raise ValueError("Please enter positive integers for n and k where n >= k"       )
  return factorial(A_       ) // (factorial(A_       ) * factorial(n - k       ))


if __name__ == "__main__":
 print(
     """The number of five-card hands possible from a standard""",
     f'''fifty-two card deck is: {combinations(52, 5)}\n''',
 )

 print(
     """If a class of 40 students must be arranged into groups of""",
     f'''4 for group projects, there are {combinations(40, 4)} ways''',
     """to arrange them.\n""",
 )

 print(
     """If 10 teams are competing in a Formula One race, there""",
     f'''are {combinations(10, 3)} ways that first, second and''',
     """third place can be awarded.""",
 )










"""simple docstring"""







class 						_A  :







    """simple docstring"""




    def __init__(					self				:    int				, __UpperCAmelCase				:    int):
      a						:		Tuple      							=			size
      a						:		Dict      							=			[0] * size
      a						:		Optional[int]      							=			[0] * size






    @staticmethod
    def 	__snake_case							(					__UpperCAmelCase				:    int):
      return index | (index + 1)






    @staticmethod
    def 	__snake_case							(					__UpperCAmelCase				:    int):
      return (index & (index + 1)) - 1






    def 	__snake_case							(					self				:    List[str]				, __UpperCAmelCase				:    int				, __UpperCAmelCase				:    int):
      a						:		Union[str, Any]      							=			value
      while index < self.size:
        a						:		Dict      							=			self.get_prev(__UpperCAmelCase) + 1
        if current_left_border == index:
          a						:		Optional[int]      							=			value
        else:
          a						:		Any      							=			max(__UpperCAmelCase				, __UpperCAmelCase				, __UpperCAmelCase)
        a						:		Optional[int]      							=			self.get_next(__UpperCAmelCase)






    def 	__snake_case							(					self				:    Union[str, Any]				, __UpperCAmelCase				:    int				, __UpperCAmelCase				:    int):
      right -= 1  # Because of right is exclusive
      a						:		List[str]      							=			0
      while left <= right:
        a						:		Dict      							=			self.get_prev(__UpperCAmelCase)
        if left <= current_left:
          a						:		Optional[int]      							=			max(__UpperCAmelCase				, self.tree[right])
          a						:		Optional[Any]      							=			current_left
        else:
          a						:		List[str]      							=			max(__UpperCAmelCase				, self.arr[right])
          right -= 1
      return result


if __name__ == "__main__":
 import doctest

 doctest.testmod()






