



def        A       (      _lowerCamelCase						):





							'''simple docstring'''




							_lowerCAmelCase  :							Tuple				     =					hex_num.strip()
							if not hex_num:
														raise ValueError("No value was passed to the function"						)

							_lowerCAmelCase  :							Optional[Any]				     =					hex_num[0] == "-"
							if is_negative:
														_lowerCAmelCase  :							List[str]				     =					hex_num[1:]

							try:
														_lowerCAmelCase  :							Tuple				     =					int(_lowerCamelCase       ,				16						)
							except ValueError:
														raise ValueError("Invalid value was passed to the function"						)

							_lowerCAmelCase  :							List[Any]				     =					""
							while int_num > 0:
														_lowerCAmelCase  :							Dict				     =					str(int_num % 2						) + bin_str
														int_num >>= 1

							return int(("-" + bin_str) if is_negative else bin_str						)


if __name__ == "__main__":
						import doctest

						doctest.testmod()





def        A       (      _lowerCamelCase						):





							'''simple docstring'''




							_lowerCAmelCase  :							int				     =					len(_lowerCamelCase						)
							for i in range(1       ,				_lowerCamelCase						):
														_lowerCAmelCase  :							List[Any]				     =					collection[i]
														_lowerCAmelCase  :							str				     =					0
														_lowerCAmelCase  :							Union[str, Any]				     =					i - 1

														while low <= high:
																					_lowerCAmelCase  :							List[str]				     =					(low + high) // 2
																					if val < collection[mid]:
																												_lowerCAmelCase  :							Optional[int]				     =					mid - 1
																					else:
																												_lowerCAmelCase  :							List[str]				     =					mid + 1
														for j in range(_lowerCamelCase       ,				_lowerCamelCase       ,				-1						):
																					_lowerCAmelCase  :							int				     =					collection[j - 1]
														_lowerCAmelCase  :							Optional[int]				     =					val
							return collection


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