
"""simple docstring"""







class 							__magic_name__     :





					def __init__(				self   :							Dict							,						snake_case_   :							list[int]    ):
												__snake_case     			=       len(snake_case_    )
												__snake_case     			=       [0] * len_array

												if len_array > 0:
																			__snake_case     			=       array[0]

												for i in range(1							,						snake_case_    ):
																			__snake_case     			=       self.prefix_sum[i - 1] + array[i]





					def 							lowerCAmelCase      (				self   :							List[Any]							,						snake_case_   :							int							,						snake_case_   :							int    ):
												if start == 0:
																			return self.prefix_sum[end]

												return self.prefix_sum[end] - self.prefix_sum[start - 1]





					def 							lowerCAmelCase      (				self   :							int							,						snake_case_   :							int    ):
												__snake_case     			=       {0}
												for sum_item in self.prefix_sum:
																			if sum_item - target_sum in sums:
																										return True

																			sums.add(snake_case_    )

												return False


if __name__ == "__main__":
		import doctest

		doctest.testmod()


"""simple docstring"""







def   __UpperCamelCase   (					SCREAMING_SNAKE_CASE )  ->     list:







							"""simple docstring"""


							__snake_case     			=       len(SCREAMING_SNAKE_CASE )
							for i in range(1							,    SCREAMING_SNAKE_CASE ):
														__snake_case     			=       collection[i]
														__snake_case     			=       0
														__snake_case     			=       i - 1

														while low <= high:
																					__snake_case     			=       (low + high) // 2
																					if val < collection[mid]:
																												__snake_case     			=       mid - 1
																					else:
																												__snake_case     			=       mid + 1
														for j in range(SCREAMING_SNAKE_CASE							,    SCREAMING_SNAKE_CASE							,    -1 ):
																					__snake_case     			=       collection[j - 1]
														__snake_case     			=       val
							return collection


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