




'''simple docstring'''


from __future__ import annotations
def 						lowerCamelCase__   (				a    ,	a    ,	a							):
						__snake_case						 =   list(range(len(a							)							)							)
						__snake_case						 =   [v / w for v, w in zip(a    ,	a							)]
						index.sort(key=lambda a							: ratio[i]    ,	reverse=a							)

						__snake_case						 =   0
						__snake_case						 =   [0] * len(a							)
						for i in index:
												if weight[i] <= capacity:
																		__snake_case						 =   1
																		max_value += value[i]
																		capacity -= weight[i]
												else:
																		__snake_case						 =   capacity / weight[i]
																		max_value += value[i] * capacity / weight[i]
																		break

						return max_value, fractions


if __name__ == "__main__":
	import doctest

	doctest.testmod()







'''simple docstring'''


def 						lowerCamelCase__   (				a							):
						__snake_case						 =   int(a							)
						if n_element < 1:
												__snake_case						 =   ValueError('a should be a positive number'							)
												raise my_error

						__snake_case						 =   [1]
						__snake_case ,       __snake_case ,       __snake_case						 =   (0, 0, 0)
						__snake_case						 =   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("""-----------------------------------------------------""")

