

'''simple docstring'''
def        _lowerCAmelCase					(						_UpperCamelCase						:     list				)      ->			str:
     """simple docstring"""




     def merge(_UpperCamelCase						:     list							, _UpperCamelCase						:     list				) -> list:

          def _merge():
               while left and right:
                    yield (left if left[0] <= right[0] else right).pop(0				)
               yield from left
               yield from right

          return list(_merge()				)

     if len(snake_case__				) <= 1:
          return collection
     _SCREAMING_SNAKE_CASE							    =len(snake_case__				) // 2
     return merge(merge_sort(collection[:mid]				)							, merge_sort(collection[mid:]				)				)


if __name__ == "__main__":
     import doctest

     doctest.testmod()
     lowerCamelCase :      Tuple					 =     input("Enter numbers separated by a comma:\n").strip()
     lowerCamelCase :      Optional[Any]					 =     [int(item) for item in user_input.split(",")]
     print(*merge_sort(unsorted), sep=",")






"""simple docstring"""


from __future__ import annotations


def 					UpperCAmelCase__       (snake_case__							:					list[float]    ):
  """simple docstring"""

  _snake_case							:		int								=  0.00
  _snake_case							:		int								=  0
  for resistor in resistors:
    if resistor <= 0:
      _snake_case							:		Dict								=  F"Resistor at index {index} has a negative or zero value!"
      raise ValueError(snake_case__    )
    first_sum += 1 / float(snake_case__    )
    index += 1
  return 1 / first_sum


def 					UpperCAmelCase__       (snake_case__							:					list[float]    ):
  """simple docstring"""

  _snake_case							:		Union[str, Any]								=  0.00
  _snake_case							:		Any								=  0
  for resistor in resistors:
    sum_r += resistor
    if resistor < 0:
      _snake_case							:		Any								=  F"Resistor at index {index} has a negative value!"
      raise ValueError(snake_case__    )
    index += 1
  return sum_r


if __name__ == "__main__":
     import doctest

     doctest.testmod()


