


'''simple docstring'''







def 						_UpperCamelCase							( UpperCamelCase__		):






				"""simple docstring"""



				return n * (2 * n - 1)



def 						_UpperCamelCase							( UpperCamelCase__		):






				"""simple docstring"""



				__magic_name__				:					str						       =       (1 + 24 * n) ** 0.5
				return ((1 + root) / 6) % 1 == 0



def 						_UpperCamelCase							( UpperCamelCase__ = 144		):






				"""simple docstring"""



				__magic_name__				:					Any						       =       start
				__magic_name__				:					List[str]						       =       hexagonal_num(UpperCamelCase__		)
				while not is_pentagonal(UpperCamelCase__		):
								n += 1
								__magic_name__				:					Union[str, Any]						       =       hexagonal_num(UpperCamelCase__		)
				return num


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



'''simple docstring'''







def 						_UpperCamelCase							( UpperCamelCase__		):






				"""simple docstring"""



				if not isinstance(UpperCamelCase__     ,   UpperCamelCase__		) or number < 0:
								raise ValueError("Input must be a non-negative integer"		)

				__magic_name__				:					str						       =       number & ~(number - 1)
				__magic_name__				:					Optional[int]						       =       0
				while intermediate:
								intermediate >>= 1
								index += 1
				return index - 1


if __name__ == "__main__":
		import doctest

		doctest.testmod(verbose=True)