



"""simple docstring"""





def   a__      ( lowerCAmelCase__ ):
      if len(lowerCAmelCase__ ) <= 1:
            return lst

      UpperCAmelCase_     					=				1

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

      return lst


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









from __future__ import annotations

def      __lowercase(						UpperCAmelCase__			):


      """simple docstring"""



      lowerCamelCase             =		2
      lowerCamelCase             =		[]
      while i * i <= n:
            if n % i:
                  i += 1
            else:
                  n //= i
                  factors.append(UpperCAmelCase__			)
      if n > 1:
            factors.append(UpperCAmelCase__			)
      return factors


if __name__ == "__main__":
     import doctest

     doctest.testmod()