


import enum
import shutil
import sys


__UpperCAmelCase : Union[str, Any] 			=				shutil.get_terminal_size()

__UpperCAmelCase : Tuple 			=				{"UP": "A", "DOWN": "B", "RIGHT": "C", "LEFT": "D"}



class    UpperCAmelCase_	(							enum.Enum):
       '''simple docstring'''
       __UpperCamelCase      :     List[Any]							=					0
       __UpperCamelCase      :     Tuple							=					1




def      a	(							SCREAMING_SNAKE_CASE_      :		Union[str, Any]							,			SCREAMING_SNAKE_CASE_      :		Union[str, Any]=""       ):






       """simple docstring"""





       sys.stdout.write(str(SCREAMING_SNAKE_CASE_       ) + end       )
       sys.stdout.flush()


def      a	(							SCREAMING_SNAKE_CASE_      :		Optional[int]							,			SCREAMING_SNAKE_CASE_      :		Optional[Any]							,			SCREAMING_SNAKE_CASE_      :		int=""       ):






       """simple docstring"""





       forceWrite(F"""\u001b[{color}m{content}\u001b[0m"""							,			SCREAMING_SNAKE_CASE_       )


def      a	(							):






       """simple docstring"""





       forceWrite('''\r'''       )


def      a	(							SCREAMING_SNAKE_CASE_      :		int							,			SCREAMING_SNAKE_CASE_      :		str       ):






       """simple docstring"""





       forceWrite(F"""\033[{num_lines}{CURSOR_TO_CHAR[direction.upper()]}"""       )


def      a	(							):






       """simple docstring"""





       forceWrite(''' ''' * TERMINAL_WIDTH       )
       reset_cursor()


def      a	(							):






       """simple docstring"""





       reset_cursor()
       forceWrite('''-''' * TERMINAL_WIDTH       )





from __future__ import annotations


def      a	(							SCREAMING_SNAKE_CASE_      :		list[int]       ):






       """simple docstring"""





       if len(SCREAMING_SNAKE_CASE_       ) == 0:
              return array

       UpperCamelCase	, UpperCamelCase    :	Union[str, Any]   	=		min(SCREAMING_SNAKE_CASE_       ), max(SCREAMING_SNAKE_CASE_       )

       # Compute the variables
       UpperCamelCase    :	Union[str, Any]   	=		_max - _min + 1
       UpperCamelCase	, UpperCamelCase    :	Optional[Any]   	=		[0] * holes_range, [0] * holes_range

       # Make the sorting.
       for i in array:
              UpperCamelCase    :	Optional[int]   	=		i - _min
              UpperCamelCase    :	Any   	=		i
              holes_repeat[index] += 1

       # Makes the array back by replacing the numbers.
       UpperCamelCase    :	str   	=		0
       for i in range(SCREAMING_SNAKE_CASE_       ):
              while holes_repeat[i] > 0:
                     UpperCamelCase    :	List[Any]   	=		holes[i]
                     index += 1
                     holes_repeat[i] -= 1

    # Returns the sorted array.
       return array


if __name__ == "__main__":
  import doctest

  doctest.testmod()
  __UpperCAmelCase : Any 			=				input("Enter numbers separated by comma:\n")
  __UpperCAmelCase : int 			=				[int(x) for x in user_input.split(",")]
  print(pigeon_sort(unsorted))

