






from __future__ import annotations



class 				__UpperCAmelCase		:







			def __init__(     self:  List[str]				,     UpperCAmelCase_:  int = 0					):







									'''simple docstring'''




									_SCREAMING_SNAKE_CASE     				=  key







			def 							UpperCamelCase				(     self:  Optional[Any]				,     UpperCAmelCase_:  str				,     UpperCAmelCase_:  int					):







									'''simple docstring'''




									assert isinstance(UpperCAmelCase_				,     UpperCAmelCase_					) and isinstance(UpperCAmelCase_				,     UpperCAmelCase_					)

									_SCREAMING_SNAKE_CASE     				=  key or self.__key or 1

									# make sure key is an appropriate size
									key %= 255

									return [chr(ord(UpperCAmelCase_					) ^ key					) for ch in content]







			def 							UpperCamelCase				(     self:  Optional[int]				,     UpperCAmelCase_:  str				,     UpperCAmelCase_:  int					):







									'''simple docstring'''




									assert isinstance(UpperCAmelCase_				,     UpperCAmelCase_					) and isinstance(UpperCAmelCase_				,     UpperCAmelCase_					)

									_SCREAMING_SNAKE_CASE     				=  key or self.__key or 1

									# make sure key is an appropriate size
									key %= 255

									return [chr(ord(UpperCAmelCase_					) ^ key					) for ch in content]







			def 							UpperCamelCase				(     self:  Optional[Any]				,     UpperCAmelCase_:  str				,     UpperCAmelCase_:  int = 0					):







									'''simple docstring'''




									assert isinstance(UpperCAmelCase_				,     UpperCAmelCase_					) and isinstance(UpperCAmelCase_				,     UpperCAmelCase_					)

									_SCREAMING_SNAKE_CASE     				=  key or self.__key or 1

									# make sure key can be any size
									while key > 255:
															key -= 255

									# This will be returned
									_SCREAMING_SNAKE_CASE     				=  """"""

									for ch in content:
															ans += chr(ord(UpperCAmelCase_					) ^ key					)

									return ans







			def 							UpperCamelCase				(     self:  int				,     UpperCAmelCase_:  str				,     UpperCAmelCase_:  int = 0					):







									'''simple docstring'''




									assert isinstance(UpperCAmelCase_				,     UpperCAmelCase_					) and isinstance(UpperCAmelCase_				,     UpperCAmelCase_					)

									_SCREAMING_SNAKE_CASE     				=  key or self.__key or 1

									# make sure key can be any size
									while key > 255:
															key -= 255

									# This will be returned
									_SCREAMING_SNAKE_CASE     				=  """"""

									for ch in content:
															ans += chr(ord(UpperCAmelCase_					) ^ key					)

									return ans







			def 							UpperCamelCase				(     self:  List[str]				,     UpperCAmelCase_:  str				,     UpperCAmelCase_:  int = 0					):







									'''simple docstring'''




									assert isinstance(UpperCAmelCase_				,     UpperCAmelCase_					) and isinstance(UpperCAmelCase_				,     UpperCAmelCase_					)

									try:
															with open(UpperCAmelCase_					) as fin, open("""encrypt.out"""				,     """w+"""					) as fout:
																					# actual encrypt-process
																					for line in fin:
																											fout.write(self.encrypt_string(UpperCAmelCase_				,     UpperCAmelCase_					)					)

									except OSError:
															return False

									return True







			def 							UpperCamelCase				(     self:  Dict				,     UpperCAmelCase_:  str				,     UpperCAmelCase_:  int					):







									'''simple docstring'''




									assert isinstance(UpperCAmelCase_				,     UpperCAmelCase_					) and isinstance(UpperCAmelCase_				,     UpperCAmelCase_					)

									try:
															with open(UpperCAmelCase_					) as fin, open("""decrypt.out"""				,     """w+"""					) as fout:
																					# actual encrypt-process
																					for line in fin:
																											fout.write(self.decrypt_string(UpperCAmelCase_				,     UpperCAmelCase_					)					)

									except OSError:
															return False

									return True


# Tests
# crypt = XORCipher()
# key = 67

# # test encrypt
# print(crypt.encrypt("hallo welt",key))
# # test decrypt
# print(crypt.decrypt(crypt.encrypt("hallo welt",key), key))

# # test encrypt_string
# print(crypt.encrypt_string("hallo welt",key))

# # test decrypt_string
# print(crypt.decrypt_string(crypt.encrypt_string("hallo welt",key),key))

# if (crypt.encrypt_file("test.txt",key)):
#       print("encrypt successful")
# else:
#       print("encrypt unsuccessful")

# if (crypt.decrypt_file("encrypt.out",key)):
#       print("decrypt successful")
# else:
#       print("decrypt unsuccessful")









def 	__lowerCamelCase      (		snake_case__		)							->  List[Any]:






						"""simple docstring"""





						_SCREAMING_SNAKE_CASE     				=  len(snake_case__		)
						for i in range(length - 1		):
												_SCREAMING_SNAKE_CASE     				=  i
												for k in range(i + 1	,snake_case__		):
																		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__":
		UpperCamelCase			    =     input('''Enter numbers separated by a comma:\n''').strip()
		UpperCamelCase			    =     [int(item) for item in user_input.split(''',''')]
		print(selection_sort(unsorted))

