
def     __lowerCAmelCase			(			a__						,    a__						,    a__  )       ->  int:

				def count_of_possible_combinations(a__  ) -> int:
								if target < 0:
												return 0
								if target == 0:
												return 1
								return sum(count_of_possible_combinations(target - item  ) for item in array  )

				return count_of_possible_combinations(a__  )


def     __lowerCAmelCase			(			a__						,    a__						,    a__  )       ->  int:

				def count_of_possible_combinations_with_dp_array(
				    a__						,    a__  ) -> int:
								if target < 0:
												return 0
								if target == 0:
												return 1
								if dp_array[target] != -1:
												return dp_array[target]
								__a										=    sum(
								    count_of_possible_combinations_with_dp_array(target - item						,    a__  )
								    for item in array  )
								__a										=    answer
								return answer

				__a										=    [-1] * (target + 1)
				return count_of_possible_combinations_with_dp_array(a__						,    a__  )


def     __lowerCAmelCase			(			a__						,    a__						,    a__  )       ->  int:
				__a										=    [0] * (target + 1)
				__a										=    1

				for i in range(1						,    target + 1  ):
								for j in range(a__  ):
												if i - array[j] >= 0:
																dp_array[i] += dp_array[i - array[j]]

				return dp_array[target]


if __name__ == "__main__":
					import doctest

					doctest.testmod()
					A     :	Dict    = 3
					A     :	Any    = 5
					A     :	Tuple    = [1, 2, 5]
					print(combination_sum_iv(n, array, target))
'''simple docstring'''

def 			__UpperCamelCase       (   UpperCAmelCase     ):
 lowercase__ ,							lowercase__				:    Optional[int]  =					[], []
 while len(UpperCAmelCase     ) > 1:
  lowercase__ ,							lowercase__				:    List[str]  =					min(UpperCAmelCase     ), max(UpperCAmelCase     )
  start.append(UpperCAmelCase     )
  end.append(UpperCAmelCase     )
  collection.remove(UpperCAmelCase     )
  collection.remove(UpperCAmelCase     )
 end.reverse()
 return start + collection + end


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

