from __future__ import annotations

from collections.abc import Iterator
from typing import Generic, TypeVar

__lowerCamelCase      :			int							       =		TypeVar('''T''')







class __snake_case    (						Generic[T]		):




   def __init__(   self      :    List[Any]	,     _lowercase      :    T				):



     """simple docstring"""






     SCREAMING_SNAKE_CASE__      							=				data
     SCREAMING_SNAKE_CASE__      							=				None




   def __str__(   self      :    Optional[Any]				):



     """simple docstring"""






     return f"""{self.data}"""







class __snake_case    (						Generic[T]		):




   def __init__(   self      :    List[str]				):



     """simple docstring"""






     SCREAMING_SNAKE_CASE__      							=				None




   def __iter__(   self      :    int				):



     """simple docstring"""






     SCREAMING_SNAKE_CASE__      							=				self.top
     while node:
       yield node.data
       SCREAMING_SNAKE_CASE__      							=				node.next




   def __str__(   self      :    str				):



     """simple docstring"""






     return "->".join([str(_lowercase				) for item in self]				)




   def __len__(   self      :    str				):



     """simple docstring"""






     return len(tuple(iter(self				)				)				)




   def      __a						(   self      :    Dict				):



     """simple docstring"""






     return self.top is None




   def      __a						(   self      :    Union[str, Any]	,     _lowercase      :    T				):



     """simple docstring"""






     SCREAMING_SNAKE_CASE__      							=				Node(_lowercase				)
     if not self.is_empty():
       SCREAMING_SNAKE_CASE__      							=				self.top
     SCREAMING_SNAKE_CASE__      							=				node




   def      __a						(   self      :    Tuple				):



     """simple docstring"""






     if self.is_empty():
       raise IndexError("""pop from empty stack"""				)
     assert isinstance(self.top	,     _lowercase				)
     SCREAMING_SNAKE_CASE__      							=				self.top
     SCREAMING_SNAKE_CASE__      							=				self.top.next
     return pop_node.data




   def      __a						(   self      :    List[Any]				):



     """simple docstring"""






     if self.is_empty():
       raise IndexError("""peek from empty stack"""				)

     assert self.top is not None
     return self.top.data




   def      __a						(   self      :    Any				):



     """simple docstring"""






     SCREAMING_SNAKE_CASE__      							=				None


if __name__ == "__main__":
   from doctest import testmod

   testmod()

def      __SCREAMING_SNAKE_CASE  ( __UpperCamelCase   :	Union[str, Any]     )							-> int:







  """simple docstring"""





  SCREAMING_SNAKE_CASE__      							=				len(__UpperCamelCase     )
  for i in range(length - 1     ):
    SCREAMING_SNAKE_CASE__      							=				i
    for k in range(i + 1			,					__UpperCamelCase     ):
      if collection[k] < collection[least]:
        SCREAMING_SNAKE_CASE__      							=				k
    if least != i:
      SCREAMING_SNAKE_CASE__							,					SCREAMING_SNAKE_CASE__      							=				(collection[i], collection[least])
  return collection


if __name__ == "__main__":
   __lowerCamelCase      :			Any							       =		input('''Enter numbers separated by a comma:\n''').strip()
   __lowerCamelCase      :			Dict							       =		[int(item) for item in user_input.split(''',''')]
   print(selection_sort(unsorted))
