



def 					__lowerCAmelCase		(  __lowerCamelCase	:    list	)  ->						list:

					if len(__lowerCamelCase	) < 2:
										return collection

					def circle_sort_util(__lowerCamelCase	:    list				,   __lowerCamelCase	:    int				,   __lowerCamelCase	:    int	) -> bool:
										__lowerCAmelCase	   =False

										if low == high:
															return swapped

										__lowerCAmelCase	   =low
										__lowerCAmelCase	   =high

										while left < right:
															if collection[left] > collection[right]:
																				__lowerCAmelCase   ,	__lowerCAmelCase	   =(
																				    collection[right],
																				    collection[left],
																				)
																				__lowerCAmelCase	   =True

															left += 1
															right -= 1

										if left == right and collection[left] > collection[right + 1]:
															__lowerCAmelCase   ,	__lowerCAmelCase	   =(
															    collection[right + 1],
															    collection[left],
															)

															__lowerCAmelCase	   =True

										__lowerCAmelCase	   =low + int((high - low) / 2	)
										__lowerCAmelCase	   =circle_sort_util(__lowerCamelCase				,   __lowerCamelCase				,   __lowerCamelCase	)
										__lowerCAmelCase	   =circle_sort_util(__lowerCamelCase				,   mid + 1				,   __lowerCamelCase	)

										return swapped or left_swap or right_swap

					__lowerCAmelCase	   =True

					while is_not_sorted is True:
										__lowerCAmelCase	   =circle_sort_util(__lowerCamelCase				,   0				,   len(__lowerCamelCase	) - 1	)

					return collection


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









def 					__lowerCAmelCase		(  __lowerCamelCase	:    int	)  ->						list:
					__lowerCAmelCase	   =int(__lowerCamelCase	)
					if n_element < 1:
										__lowerCAmelCase	   =ValueError("""a should be a positive number"""	)
										raise my_error

					__lowerCAmelCase	   =[1]
					__lowerCAmelCase   ,	__lowerCAmelCase   ,	__lowerCAmelCase	   =(0, 0, 0)
					__lowerCAmelCase	   =1
					while index < n_element:
										while hamming_list[i] * 2 <= hamming_list[-1]:
															i += 1
										while hamming_list[j] * 3 <= hamming_list[-1]:
															j += 1
										while hamming_list[k] * 5 <= hamming_list[-1]:
															k += 1
										hamming_list.append(
										    min(hamming_list[i] * 2				,   hamming_list[j] * 3				,   hamming_list[k] * 5	)	)
										index += 1
					return hamming_list


if __name__ == "__main__":
				lowercase_	       =			input('''Enter the last number (nth term) of the Hamming Number Series: ''')
				print('''Formula of Hamming Number Series => 2^i * 3^j * 5^k''')
				lowercase_	       =			hamming(int(n))
				print('''-----------------------------------------------------''')
				print(F"The list with nth numbers is: {hamming_numbers}")
				print('''-----------------------------------------------------''')




