






'''simple docstring'''





from typing import Any

import numpy as np
def __UpperCAmelCase   (					A					:			np.ndarray		)    ->   bool:
			return np.array_equal(A			,       matrix.conjugate().T		)
def __UpperCAmelCase   (					A					:			np.ndarray			,       A					:			np.ndarray		)    ->   Any:
			UpperCAmelCase_      :       Dict          =       v.conjugate().T
			UpperCAmelCase_      :       str          =       v_star.dot(A		)
			assert isinstance(A			,       np.ndarray		)
			return (v_star_dot.dot(A		)) / (v_star.dot(A		))
def __UpperCAmelCase   (					)    ->   None:
			UpperCAmelCase_      :       int          =       np.array([[2, 2 + 1J, 4], [2 - 1J, 3, 1J], [4, -1J, 1]]		)
			UpperCAmelCase_      :       str          =       np.array([[1], [2], [3]]		)
			assert is_hermitian(A		), F"{a} is not hermitian."
			print(rayleigh_quotient(A			,       A		)		)

			UpperCAmelCase_      :       str          =       np.array([[1, 2, 4], [2, 3, -1], [4, -1, 1]]		)
			assert is_hermitian(A		), F"{a} is not hermitian."
			assert rayleigh_quotient(A			,       A		) == float(3		)


if __name__ == "__main__":
						import doctest

						doctest.testmod()
						tests()










'''simple docstring'''





def __UpperCAmelCase   (					A					:			list		)    ->   list:
			if len(A		) <= 1:
						return lst

			UpperCAmelCase_      :       List[str]          =       1

			while i < len(A		):
						if lst[i - 1] <= lst[i]:
									i += 1
						else:
									UpperCAmelCase_    ,      UpperCAmelCase_      :       Dict          =       lst[i], lst[i - 1]
									i -= 1
									if i == 0:
												UpperCAmelCase_      :       Dict          =       1

			return lst


if __name__ == "__main__":
						_UpperCamelCase						:						int  =					input('Enter numbers separated by a comma:\n').strip()
						_UpperCamelCase						:						Union[str, Any]  =					[int(item) for item in user_input.split(',')]
						print(gnome_sort(unsorted))


