






'''simple docstring'''



def    __UpperCAmelCase	(				SCREAMING_SNAKE_CASE__:	Optional[int]    )  ->			Optional[int]:

   """simple docstring"""
   __a     ,			__a				     =    [], []
   while len(SCREAMING_SNAKE_CASE__    ) > 1:
      __a     ,			__a				     =    min(SCREAMING_SNAKE_CASE__    ), max(SCREAMING_SNAKE_CASE__    )
      start.append(SCREAMING_SNAKE_CASE__    )
      end.append(SCREAMING_SNAKE_CASE__    )
      collection.remove(SCREAMING_SNAKE_CASE__    )
      collection.remove(SCREAMING_SNAKE_CASE__    )
   end.reverse()
   return start + collection + end


if __name__ == "__main__":
 __UpperCamelCase      :       str      			=      input("""Enter numbers separated by a comma:\n""").strip()
 __UpperCamelCase      :       int      			=      [int(item) for item in user_input.split(""",""")]
 print(*merge_sort(unsorted), sep=""",""")







'''simple docstring'''



from maths.prime_factors import prime_factors



def    __UpperCAmelCase	(				SCREAMING_SNAKE_CASE__:	int    )  ->			int:

   """simple docstring"""
   if not isinstance(SCREAMING_SNAKE_CASE__,					SCREAMING_SNAKE_CASE__    ):
      __a				     =    f"""Input value of [number={number}] must be an integer"""
      raise TypeError(SCREAMING_SNAKE_CASE__    )
   if number < 1:
      raise ValueError('Input must be a positive integer'    )
   return -1 if len(prime_factors(SCREAMING_SNAKE_CASE__    )    ) % 2 else 1


if __name__ == "__main__":
 import doctest

 doctest.testmod()