






'''simple docstring'''







def 					SCREAMING_SNAKE_CASE_			(UpperCamelCase							,     UpperCamelCase							,     UpperCamelCase ) ->			Optional[int]:
							lowerCamelCase__   :      List[str]			    =			index
							lowerCamelCase__   :      Dict			    =			2 * index + 1
							lowerCamelCase__   :      List[Any]			    =			2 * index + 2
							if left_index < heap_size and unsorted[left_index] > unsorted[largest]:
														lowerCamelCase__   :      Optional[Any]			    =			left_index

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

							if largest != index:
														lowerCamelCase__    ,						lowerCamelCase__   :      str			    =			unsorted[index], unsorted[largest]
														heapify(lowerCAmelCase_							,     lowerCAmelCase_							,     lowerCAmelCase_ )





def 					SCREAMING_SNAKE_CASE_			(UpperCamelCase ) ->			List[str]:
							lowerCamelCase__   :      int			    =			len(lowerCAmelCase_ )
							for i in range(n // 2 - 1							,     -1							,     -1 ):
														heapify(lowerCAmelCase_							,     lowerCAmelCase_							,     lowerCAmelCase_ )
							for i in range(n - 1							,     0							,     -1 ):
														lowerCamelCase__    ,						lowerCamelCase__   :      Union[str, Any]			    =			unsorted[i], unsorted[0]
														heapify(lowerCAmelCase_							,     0							,     lowerCAmelCase_ )
							return unsorted


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




import numpy as np







def      snake_case__							(  lowerCAmelCase_     ):





     """simple docstring"""







     SCREAMING_SNAKE_CASE 		=np.exp(lowerCAmelCase_     )

     # Add up the all the exponentials
     SCREAMING_SNAKE_CASE 		=np.sum(lowerCAmelCase_     )

     # Divide every exponent by the sum of all exponents
     SCREAMING_SNAKE_CASE 		=exponent_vector / sum_of_exponents

     return softmax_vector


if __name__ == "__main__":
 print(softmax((0,)))

