


'''simple docstring'''




def 	a_					( lowerCamelCase	:     list				):
   if len(lowerCamelCase				) <= 1:
      return lst

   lowerCAmelCase     =			1

   while i < len(lowerCamelCase				):
      if lst[i - 1] <= lst[i]:
         i += 1
      else:
         lowerCAmelCase     ,  lowerCAmelCase     =			lst[i], lst[i - 1]
         i -= 1
         if i == 0:
            lowerCAmelCase     =			1

   return lst


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









'''simple docstring'''




import pickle
import unittest

import torch

from accelerate import Accelerator
from accelerate.state import AcceleratorState
from accelerate.test_utils import require_cpu

@require_cpu
class 		UpperCAmelCase_      (  unittest.TestCase		):





     def 							__UpperCAmelCase      ( self       :      str    )				->  List[Any]:
        lowerCAmelCase     =			torch.nn.Linear(1_0    ,      1_0    )
        lowerCAmelCase     =			torch.optim.SGD(model.parameters()    ,      0.1    )
        lowerCAmelCase     =			Accelerator()
        lowerCAmelCase     =			accelerator.prepare(UpperCAmelCase__    )
        try:
           pickle.loads(pickle.dumps(UpperCAmelCase__    )    )
        except Exception as e:
           self.fail(F'''Accelerated optimizer pickling failed with {e}'''    )
        AcceleratorState._reset_state()





