
"""simple docstring"""
def      __lowerCamelCase	(		UpperCamelCase__					,  UpperCamelCase__   ):


	"""simple docstring"""






	_UpperCAmelCase			=    [[] for _ in range(UpperCamelCase__   )]
	_UpperCAmelCase			=    key - 1

	if key <= 0:
		raise ValueError("Height of grid can't be 0 or negative"   )
	if key == 1 or len(UpperCamelCase__   ) <= key:
		return input_string

	for position, character in enumerate(UpperCamelCase__   ):
		_UpperCAmelCase			=    position % (lowest * 2)  # puts it in bounds
		_UpperCAmelCase			=    min(UpperCamelCase__					,  lowest * 2 - num   )  # creates zigzag pattern
		temp_grid[num].append(UpperCamelCase__   )
	_UpperCAmelCase			=    ["".join(UpperCamelCase__   ) for row in temp_grid]
	_UpperCAmelCase			=    "".join(UpperCamelCase__   )

	return output_string




def      __lowerCamelCase	(		UpperCamelCase__					,  UpperCamelCase__   ):


	"""simple docstring"""






	_UpperCAmelCase			=    []
	_UpperCAmelCase			=    key - 1

	if key <= 0:
		raise ValueError("Height of grid can't be 0 or negative"   )
	if key == 1:
		return input_string

	_UpperCAmelCase			=    [[] for _ in range(UpperCamelCase__   )]  # generates template
	for position in range(len(UpperCamelCase__   )   ):
		_UpperCAmelCase			=    position % (lowest * 2)  # puts it in bounds
		_UpperCAmelCase			=    min(UpperCamelCase__					,  lowest * 2 - num   )  # creates zigzag pattern
		temp_grid[num].append("*"   )

	_UpperCAmelCase			=    0
	for row in temp_grid:  # fills in the characters
		_UpperCAmelCase			=    input_string[counter : counter + len(UpperCamelCase__   )]
		grid.append(list(UpperCamelCase__   )   )
		counter += len(UpperCamelCase__   )

	_UpperCAmelCase			=    ""  # reads as zigzag
	for position in range(len(UpperCamelCase__   )   ):
		_UpperCAmelCase			=    position % (lowest * 2)  # puts it in bounds
		_UpperCAmelCase			=    min(UpperCamelCase__					,  lowest * 2 - num   )  # creates zigzag pattern
		output_string += grid[num][0]
		grid[num].pop(0   )
	return output_string




def      __lowerCamelCase	(		UpperCamelCase__   ):


	"""simple docstring"""






	_UpperCAmelCase			=    {}
	for key_guess in range(1					,  len(UpperCamelCase__   )   ):  # tries every key
		_UpperCAmelCase			=    decrypt(UpperCamelCase__					,  UpperCamelCase__   )
	return results


if __name__ == "__main__":
			import doctest

			doctest.testmod()












"""simple docstring"""



def 	SCREAMING_SNAKE_CASE__       (  snake_case       : Tuple				)->		str:






     '''simple docstring'''



     UpperCAmelCase__						:    List[str]							=							len(snake_case				)
     for i in range(length - 1				):
          UpperCAmelCase__						:    Any							=							i
          for k in range(i + 1			,					snake_case				):
               if collection[k] < collection[least]:
                    UpperCAmelCase__						:    Union[str, Any]							=							k
          if least != i:
               UpperCAmelCase__							,				UpperCAmelCase__						:    Union[str, Any]							=							(collection[i], collection[least])
     return collection


if __name__ == "__main__":
 _lowerCAmelCase	:	List[str]				=      input("""Enter numbers separated by a comma:\n""").strip()
 _lowerCAmelCase	:	Optional[int]				=      [int(item) for item in user_input.split(""",""")]
 print(selection_sort(unsorted))


