



def 						_lowerCAmelCase    (					__lowerCamelCase :  Optional[Any]		,						__lowerCamelCase :  Optional[int]		,						__lowerCamelCase :  Optional[int]  ):



 """simple docstring"""





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

 if right_index < heap_size and unsorted[right_index] > unsorted[largest]:
  __SCREAMING_SNAKE_CASE							:     Dict							=						right_index

 if largest != index:
  __SCREAMING_SNAKE_CASE,		__SCREAMING_SNAKE_CASE							:     List[str]							=						unsorted[index], unsorted[largest]
  heapify(__lowerCamelCase		,						__lowerCamelCase		,						__lowerCamelCase  )






def 						_lowerCAmelCase    (					__lowerCamelCase :  Optional[int]  ):



 """simple docstring"""





 __SCREAMING_SNAKE_CASE							:     Tuple							=						len(__lowerCamelCase  )
 for i in range(n // 2 - 1		,						-1		,						-1  ):
  heapify(__lowerCamelCase		,						__lowerCamelCase		,						__lowerCamelCase  )
 for i in range(n - 1		,						0		,						-1  ):
  __SCREAMING_SNAKE_CASE,		__SCREAMING_SNAKE_CASE							:     Optional[Any]							=						unsorted[i], unsorted[0]
  heapify(__lowerCamelCase		,						0		,						__lowerCamelCase  )
 return unsorted


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









from math import cos, sin







def      snake_case__							(  lowerCAmelCase_     ):





     """simple docstring"""







     SCREAMING_SNAKE_CASE 		=float(lowerCAmelCase_     )
     return [[scaling_factor * int(x == y     ) for x in range(2     )] for y in range(2     )]







def      snake_case__							(  lowerCAmelCase_     ):





     """simple docstring"""







     SCREAMING_SNAKE_CASE		,    SCREAMING_SNAKE_CASE 		=cos(lowerCAmelCase_     ), sin(lowerCAmelCase_     )
     return [[c, -s], [s, c]]







def      snake_case__							(  lowerCAmelCase_     ):





     """simple docstring"""







     SCREAMING_SNAKE_CASE		,    SCREAMING_SNAKE_CASE 		=cos(lowerCAmelCase_     ), sin(lowerCAmelCase_     )
     SCREAMING_SNAKE_CASE 		=c * s
     return [[c * c, cs], [cs, s * s]]







def      snake_case__							(  lowerCAmelCase_     ):





     """simple docstring"""







     SCREAMING_SNAKE_CASE		,    SCREAMING_SNAKE_CASE 		=cos(lowerCAmelCase_     ), sin(lowerCAmelCase_     )
     SCREAMING_SNAKE_CASE 		=c * s
     return [[2 * c - 1, 2 * cs], [2 * cs, 2 * s - 1]]


print(f'    {scaling(5) = }')
print(f'  {rotation(45) = }')
print(f'{projection(45) = }')



print(f'{reflection(45) = }')

