
'''simple docstring'''







def       snake_case_	(       __SCREAMING_SNAKE_CASE      :				Union[str, Any]   ,   __SCREAMING_SNAKE_CASE      :				List[str]   ,   __SCREAMING_SNAKE_CASE      :				int							):



						"""simple docstring"""





						lowercase_			:  str									= index
						lowercase_			:  Tuple									= 2 * index + 1
						lowercase_			:  List[Any]									= 2 * index + 2
						if left_index < heap_size and unsorted[left_index] > unsorted[largest]:
												lowercase_			:  Optional[Any]									= left_index

						if right_index < heap_size and unsorted[right_index] > unsorted[largest]:
												lowercase_			:  List[str]									= right_index

						if largest != index:
												lowercase_		,				lowercase_			:  str									= unsorted[index], unsorted[largest]
												heapify(__SCREAMING_SNAKE_CASE   ,   __SCREAMING_SNAKE_CASE   ,   __SCREAMING_SNAKE_CASE							)
def       snake_case_	(       __SCREAMING_SNAKE_CASE      :				Optional[int]							):



						"""simple docstring"""





						lowercase_			:  Union[str, Any]									= len(__SCREAMING_SNAKE_CASE							)
						for i in range(n // 2 - 1   ,   -1   ,   -1							):
												heapify(__SCREAMING_SNAKE_CASE   ,   __SCREAMING_SNAKE_CASE   ,   __SCREAMING_SNAKE_CASE							)
						for i in range(n - 1   ,   0   ,   -1							):
												lowercase_		,				lowercase_			:  Dict									= unsorted[i], unsorted[0]
												heapify(__SCREAMING_SNAKE_CASE   ,   0   ,   __SCREAMING_SNAKE_CASE							)
						return unsorted


if __name__ == "__main__":
							_lowercase				:						List[Any]												= input("Enter numbers separated by a comma:\n").strip()
							_lowercase				:						Dict												= [int(item) for item in user_input.split(",")]
							print(heap_sort(unsorted))





'''simple docstring'''







def       snake_case_	(       __SCREAMING_SNAKE_CASE      :				int = 998001							):



						"""simple docstring"""





						lowercase_			:  Dict									= 0
						for i in range(999   ,   99   ,   -1							):  # 3 digit numbers range from 999 down to 100
												for j in range(999   ,   99   ,   -1							):
																		lowercase_			:  int									= str(i * j							)
																		if product_string == product_string[::-1] and i * j < n:
																								lowercase_			:  str									= max(__SCREAMING_SNAKE_CASE   ,   i * j							)
						return answer


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



