



"""simple docstring"""
def        __magic_name__			(							lowercase	):
   SCREAMING_SNAKE_CASE_:	Tuple            =[701, 301, 132, 57, 23, 10, 4, 1]
   for gap in gaps:
      for i in range(lowercase							,     len(lowercase	)	):
         SCREAMING_SNAKE_CASE_:	Tuple            =collection[i]
         SCREAMING_SNAKE_CASE_:	Tuple            =i
         while j >= gap and collection[j - gap] > insert_value:
            SCREAMING_SNAKE_CASE_:	List[str]            =collection[j - gap]
            j -= gap
         if j != i:
            SCREAMING_SNAKE_CASE_:	int            =insert_value
   return collection


if __name__ == "__main__":
   from doctest import testmod

   testmod()
   _UpperCAmelCase       =     input("""Enter numbers separated by a comma:\n""").strip()
   _UpperCAmelCase       =     [int(item) for item in user_input.split(""",""")]
   print(shell_sort(unsorted))








"""simple docstring"""
def        __magic_name__			(							lowercase = 1000	):
   SCREAMING_SNAKE_CASE_:	Dict            =0
   SCREAMING_SNAKE_CASE_:	Any            =0
   while 1:
      num += 3
      if num >= n:
         break
      total += num
      num += 2
      if num >= n:
         break
      total += num
      num += 1
      if num >= n:
         break
      total += num
      num += 3
      if num >= n:
         break
      total += num
      num += 1
      if num >= n:
         break
      total += num
      num += 2
      if num >= n:
         break
      total += num
      num += 3
      if num >= n:
         break
      total += num
   return total


if __name__ == "__main__":
   print(f"""{solution() = }""")



