'''simple docstring'''

from __future__ import annotations

from math import pow, sqrt
def       __UpperCamelCase	(       UpperCAmelCase		,					UpperCAmelCase		,					UpperCAmelCase					):
 if (resistance, reactance, impedance).count(0					) != 1:
  raise ValueError('''One and only one argument must be 0'''					)
 if resistance == 0:
  return {"resistance": sqrt(pow(UpperCAmelCase		,					2					) - pow(UpperCAmelCase		,					2					)					)}
 elif reactance == 0:
  return {"reactance": sqrt(pow(UpperCAmelCase		,					2					) - pow(UpperCAmelCase		,					2					)					)}
 elif impedance == 0:
  return {"impedance": sqrt(pow(UpperCAmelCase		,					2					) + pow(UpperCAmelCase		,					2					)					)}
 else:
  raise ValueError('''Exactly one argument must be 0'''					)


if __name__ == "__main__":
  import doctest

  doctest.testmod()


'''simple docstring'''

def       __UpperCamelCase	(       UpperCAmelCase					):

 def merge(UpperCAmelCase		,					UpperCAmelCase					) -> 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(UpperCAmelCase					) <= 1:
  return collection
 lowercase__    :   int						= len(UpperCAmelCase					) // 2
 return merge(merge_sort(collection[:mid]					)		,					merge_sort(collection[mid:]					)					)


if __name__ == "__main__":
  import doctest

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

