
"""simple docstring"""





def 				A_  (__a					):

					'''simple docstring'''





					A_								=    int(__a					)
					if n_element < 1:
										A_								=    ValueError("a should be a positive number"					)
										raise my_error

					A_								=    [1]
					A_			,     A_			,     A_								=    (0, 0, 0)
					A_								=    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__":
		UpperCamelCase_       :    Any						      =			input('''Enter the last number (nth term) of the Hamming Number Series: ''')
		print('''Formula of Hamming Number Series => 2^i * 3^j * 5^k''')
		UpperCamelCase_       :    Union[str, Any]						      =			hamming(int(n))
		print('''-----------------------------------------------------''')
		print(F"""The list with nth numbers is: {hamming_numbers}""")
		print('''-----------------------------------------------------''')






"""simple docstring"""





def 				A_  (__a					):

					'''simple docstring'''





					A_								=    len(__a					)
					while cur > 1:
										# Find the maximum number in arr
										A_								=    arr.index(max(arr[0:cur]					)					)
										# Reverse from 0 to mi
										A_								=    arr[mi::-1] + arr[mi + 1 : len(__a					)]
										# Reverse whole list
										A_								=    arr[cur - 1 :: -1] + arr[cur : len(__a					)]
										cur -= 1
					return arr


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




