
"""simple docstring"""







def    __lowerCAmelCase    (_UpperCamelCase = 10**9		):
	__lowerCAmelCase      :						Optional[int]						      =				1
	__lowerCAmelCase      :						Optional[int]						      =				2

	__lowerCAmelCase      :						Tuple						      =				0
	__lowerCAmelCase      :						Dict						      =				0
	__lowerCAmelCase      :						str						      =				0
	while perimeter <= max_perimeter:
		perimeters_sum += perimeter

		prev_value += 2 * value
		value += prev_value

		__lowerCAmelCase      :						int						      =				2 * value + 2 if i % 2 == 0 else 2 * value - 2
		i += 1

	return perimeters_sum


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

"""simple docstring"""







def    __lowerCAmelCase    (_UpperCamelCase		):
	if len(_UpperCamelCase		) <= 1:
		return lst

	__lowerCAmelCase      :						str						      =				1

	while i < len(_UpperCamelCase		):
		if lst[i - 1] <= lst[i]:
			i += 1
		else:
			__lowerCAmelCase      ,       __lowerCAmelCase      :						List[Any]						      =				lst[i], lst[i - 1]
			i -= 1
			if i == 0:
				__lowerCAmelCase      :						int						      =				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))