


"""simple docstring"""
from __future__ import annotations




class 	lowercase__				:





   def __init__(							self      ,   SCREAMING_SNAKE_CASE = 0)  ->  Optional[int]:
      _lowerCamelCase	:					Dict   =		key





   def 		UpperCamelCase_  (							self      ,   SCREAMING_SNAKE_CASE      ,   SCREAMING_SNAKE_CASE)  ->  list[str]:
      assert isinstance(SCREAMING_SNAKE_CASE      ,   SCREAMING_SNAKE_CASE) and isinstance(SCREAMING_SNAKE_CASE      ,   SCREAMING_SNAKE_CASE)

      _lowerCamelCase	:					Any   =		key or self.__key or 1

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

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





   def 		UpperCamelCase_  (							self      ,   SCREAMING_SNAKE_CASE      ,   SCREAMING_SNAKE_CASE)  ->  list[str]:
      assert isinstance(SCREAMING_SNAKE_CASE      ,   SCREAMING_SNAKE_CASE) and isinstance(SCREAMING_SNAKE_CASE      ,   SCREAMING_SNAKE_CASE)

      _lowerCamelCase	:					Optional[int]   =		key or self.__key or 1

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

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





   def 		UpperCamelCase_  (							self      ,   SCREAMING_SNAKE_CASE      ,   SCREAMING_SNAKE_CASE = 0)  ->  str:
      assert isinstance(SCREAMING_SNAKE_CASE      ,   SCREAMING_SNAKE_CASE) and isinstance(SCREAMING_SNAKE_CASE      ,   SCREAMING_SNAKE_CASE)

      _lowerCamelCase	:					str   =		key or self.__key or 1

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

      # This will be returned
      _lowerCamelCase	:					Optional[Any]   =		""""""

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

      return ans





   def 		UpperCamelCase_  (							self      ,   SCREAMING_SNAKE_CASE      ,   SCREAMING_SNAKE_CASE = 0)  ->  str:
      assert isinstance(SCREAMING_SNAKE_CASE      ,   SCREAMING_SNAKE_CASE) and isinstance(SCREAMING_SNAKE_CASE      ,   SCREAMING_SNAKE_CASE)

      _lowerCamelCase	:					List[str]   =		key or self.__key or 1

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

      # This will be returned
      _lowerCamelCase	:					Optional[Any]   =		""""""

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

      return ans





   def 		UpperCamelCase_  (							self      ,   SCREAMING_SNAKE_CASE      ,   SCREAMING_SNAKE_CASE = 0)  ->  bool:
      assert isinstance(SCREAMING_SNAKE_CASE      ,   SCREAMING_SNAKE_CASE) and isinstance(SCREAMING_SNAKE_CASE      ,   SCREAMING_SNAKE_CASE)

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

      except OSError:
         return False

      return True





   def 		UpperCamelCase_  (							self      ,   SCREAMING_SNAKE_CASE      ,   SCREAMING_SNAKE_CASE)  ->  bool:
      assert isinstance(SCREAMING_SNAKE_CASE      ,   SCREAMING_SNAKE_CASE) and isinstance(SCREAMING_SNAKE_CASE      ,   SCREAMING_SNAKE_CASE)

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

      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")






"""simple docstring"""







def     UpperCAmelCase_					(				__a   :			list						):




			'''simple docstring'''



			if len(__a						) <= 1:
						return lst

			_lowerCamelCase					:					str	       =    1

			while i < len(__a						):
						if lst[i - 1] <= lst[i]:
									i += 1
						else:
									_lowerCamelCase       ,							_lowerCamelCase					:					Optional[Any]	       =    lst[i], lst[i - 1]
									i -= 1
									if i == 0:
												_lowerCamelCase					:					Dict	       =    1

			return lst


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





