"""simple docstring"""





def    lowercase_   (   _lowerCamelCase:	int      ) ->      list:



							'''simple docstring'''

							__lowerCamelCase					:		List[Any]		   =     int(_lowerCamelCase      )
							if n_element < 1:
														__lowerCamelCase					:		Optional[int]		   =     ValueError("a should be a positive number"      )
														raise my_error

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





def    lowercase_   (   _lowerCamelCase:	int = 600851475143      ) ->      int:



							'''simple docstring'''

							try:
														__lowerCamelCase					:		Optional[Any]		   =     int(_lowerCamelCase      )
							except (TypeError, ValueError):
														raise TypeError("Parameter n must be int or castable to int."      )
							if n <= 0:
														raise ValueError("Parameter n must be greater than or equal to one."      )
							__lowerCamelCase					:		Union[str, Any]		   =     2
							__lowerCamelCase					:		int		   =     0
							if n == 2:
														return 2
							while n > 2:
														while n % i != 0:
																					i += 1
														__lowerCamelCase					:		Dict		   =     i
														while n % i == 0:
																					__lowerCamelCase					:		Union[str, Any]		   =     n // i
														i += 1
							return int(_lowerCamelCase      )


if __name__ == "__main__":
				print(F"""{solution() = }""")