

'''simple docstring'''

def       A_     (       snake_case       ):
  SCREAMING_SNAKE_CASE:Tuple  					=    [], []
  while len(__snake_case       ) > 1:
    SCREAMING_SNAKE_CASE:List[Any]  					=    min(__snake_case       ), max(__snake_case       )
    start.append(__snake_case       )
    end.append(__snake_case       )
    collection.remove(__snake_case       )
    collection.remove(__snake_case       )
  end.reverse()
  return start + collection + end


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








"""simple docstring"""




def   __magic_name__	(      __snake_case				:       int     , __snake_case				:       int     , __snake_case				:       int  ) ->				float:
       lowercase    :				List[Any]       		=							(num_of_terms / 2) * (2 * first_term + (num_of_terms - 1) * common_diff)
       # formula for sum of series
       return total


def   __magic_name__	(      ) ->				int:
       print(sum_of_series(1     , 1     , 10  )  )


if __name__ == "__main__":
   import doctest

   doctest.testmod()


