
def 							UpperCAmelCase_		(							__SCREAMING_SNAKE_CASE = 1000							):
	lowercase					  =   []
	lowercase					  =   []
	lowercase					  =   3
	lowercase					  =   5
	lowercase					  =   1
	while True:
		lowercase					  =   z * temp
		if result < n:
			zmulti.append(__SCREAMING_SNAKE_CASE							)
			temp += 1
		else:
			lowercase					  =   1
			break
	while True:
		lowercase					  =   x * temp
		if result < n:
			xmulti.append(__SCREAMING_SNAKE_CASE							)
			temp += 1
		else:
			break
	lowercase					  =   list(set(xmulti + zmulti							)							)
	return sum(__SCREAMING_SNAKE_CASE							)


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



def 							UpperCAmelCase_		(							__SCREAMING_SNAKE_CASE							):
	lowercase					  =   [701, 301, 132, 57, 23, 10, 4, 1]
	for gap in gaps:
		for i in range(__SCREAMING_SNAKE_CASE			,							len(__SCREAMING_SNAKE_CASE							)							):
			lowercase					  =   collection[i]
			lowercase					  =   i
			while j >= gap and collection[j - gap] > insert_value:
				lowercase					  =   collection[j - gap]
				j -= gap
			if j != i:
				lowercase					  =   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))

