

import random







def       A_				(   _UpperCAmelCase    ,     _UpperCAmelCase    ,     _UpperCAmelCase   ):
						SCREAMING_SNAKE_CASE_:			List[str]  		=	a[left_index]
						SCREAMING_SNAKE_CASE_:			Dict  		=	left_index + 1
						for j in range(left_index + 1    ,     _UpperCAmelCase   ):
												if a[j] < pivot:
																		SCREAMING_SNAKE_CASE_		,   SCREAMING_SNAKE_CASE_:			Dict  		=	a[i], a[j]
																		i += 1
						SCREAMING_SNAKE_CASE_		,   SCREAMING_SNAKE_CASE_:			Optional[int]  		=	a[i - 1], a[left_index]
						return i - 1







def       A_				(   _UpperCAmelCase    ,     _UpperCAmelCase    ,     _UpperCAmelCase   ):
						if left < right:
												SCREAMING_SNAKE_CASE_:			List[str]  		=	random.randint(_UpperCAmelCase    ,     right - 1   )
												SCREAMING_SNAKE_CASE_		,   SCREAMING_SNAKE_CASE_:			str  		=	(
												    a[left],
												    a[pivot],
												)  # switches the pivot with the left most bound
												SCREAMING_SNAKE_CASE_:			Any  		=	partition(_UpperCAmelCase    ,     _UpperCAmelCase    ,     _UpperCAmelCase   )
												quick_sort_random(
												    _UpperCAmelCase    ,     _UpperCAmelCase    ,     _UpperCAmelCase   )  # recursive quicksort to the left of the pivot point
												quick_sort_random(
												    _UpperCAmelCase    ,     pivot_index + 1    ,     _UpperCAmelCase   )  # recursive quicksort to the right of the pivot point







def       A_				(   ):
						SCREAMING_SNAKE_CASE_:			Optional[Any]  		=	input("Enter numbers separated by a comma:\n"   ).strip()
						SCREAMING_SNAKE_CASE_:			Union[str, Any]  		=	[int(_UpperCAmelCase   ) for item in user_input.split(","   )]

						quick_sort_random(_UpperCAmelCase    ,     0    ,     len(_UpperCAmelCase   )   )

						print(_UpperCAmelCase   )


if __name__ == "__main__":
						main()









def       A_				(   _UpperCAmelCase = 10**9   ):
						SCREAMING_SNAKE_CASE_:			List[str]  		=	1
						SCREAMING_SNAKE_CASE_:			Optional[int]  		=	2

						SCREAMING_SNAKE_CASE_:			int  		=	0
						SCREAMING_SNAKE_CASE_:			Dict  		=	0
						SCREAMING_SNAKE_CASE_:			List[str]  		=	0
						while perimeter <= max_perimeter:
												perimeters_sum += perimeter

												prev_value += 2 * value
												value += prev_value

												SCREAMING_SNAKE_CASE_:			Any  		=	2 * value + 2 if i % 2 == 0 else 2 * value - 2
												i += 1

						return perimeters_sum


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






