



from __future__ import annotations
def 	snake_case__       (					__lowercase       )		->		Tuple:







      """simple docstring"""

      if len(__lowercase       ) == 0:
            return array

      A__	:							Optional[int]						    = min(__lowercase       ), max(__lowercase       )

      # Compute the variables
      A__	:							int						    = _max - _min + 1
      A__	:							Dict						    = [0] * holes_range, [0] * holes_range

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

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

                   # Returns the sorted array.
      return array


if __name__ == "__main__":
  import doctest

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




snake_case    :						Tuple  =						'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
def 	snake_case__       (					)		->		None:







						"""simple docstring"""

						A__	:							Union[str, Any]						    = input("Enter message: "       )
						A__	:							Tuple						    = input("Enter key [alphanumeric]: "       )
						A__	:							Optional[Any]						    = input("Encrypt/Decrypt [e/d]: "       )

						if mode.lower().startswith("e"       ):
												A__	:							Tuple						    = "encrypt"
												A__	:							str						    = encrypt_message(__lowercase							,     __lowercase       )
						elif mode.lower().startswith("d"       ):
												A__	:							Optional[Any]						    = "decrypt"
												A__	:							Union[str, Any]						    = decrypt_message(__lowercase							,     __lowercase       )

						print(F'\n{mode.title()}ed message:'       )
						print(__lowercase       )
def 	snake_case__       (					__lowercase							,     __lowercase       )		->		str:







						"""simple docstring"""

						return translate_message(__lowercase							,     __lowercase							,     "encrypt"       )
def 	snake_case__       (					__lowercase							,     __lowercase       )		->		str:







						"""simple docstring"""

						return translate_message(__lowercase							,     __lowercase							,     "decrypt"       )
def 	snake_case__       (					__lowercase							,     __lowercase							,     __lowercase       )		->		str:







						"""simple docstring"""

						A__	:							Dict						    = []
						A__	:							Union[str, Any]						    = 0
						A__	:							List[Any]						    = key.upper()

						for symbol in message:
												A__	:							List[str]						    = LETTERS.find(symbol.upper()       )
												if num != -1:
																		if mode == "encrypt":
																								num += LETTERS.find(key[key_index]       )
																		elif mode == "decrypt":
																								num -= LETTERS.find(key[key_index]       )

																		num %= len(__lowercase       )

																		if symbol.isupper():
																								translated.append(LETTERS[num]       )
																		elif symbol.islower():
																								translated.append(LETTERS[num].lower()       )

																		key_index += 1
																		if key_index == len(__lowercase       ):
																								A__	:							Optional[int]						    = 0
												else:
																		translated.append(__lowercase       )
						return "".join(__lowercase       )


if __name__ == "__main__":
		main()