


"""simple docstring"""






def 			A__		(					_UpperCAmelCase    :      int				,    _UpperCAmelCase    :      int				,    _UpperCAmelCase    :      int	)							->	float:

	'''simple docstring'''


	if common_ratio == 1:
		# Formula for sum if common ratio is 1
		return num_of_terms * first_term

	# Formula for finding sum of n terms of a GeometricProgression
	return (first_term / (1 - common_ratio)) * (1 - common_ratio**num_of_terms)












def _a							(      lowerCamelCase:  List[Any]					)      ->		Optional[Any]:







      '''simple docstring'''






      __A			  =							[7_01, 3_01, 1_32, 57, 23, 10, 4, 1]
      for gap in gaps:
            for i in range(lowerCamelCase   ,							len(lowerCamelCase					)					):
                  __A			  =							collection[i]
                  __A			  =							i
                  while j >= gap and collection[j - gap] > insert_value:
                        __A			  =							collection[j - gap]
                        j -= gap
                  if j != i:
                        __A			  =							insert_value
      return collection


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

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





