def 					UpperCamelCase__		(							A__       )  ->   int:
				return n * (2 * n - 1)
def 					UpperCamelCase__		(							A__       )  ->   bool:
				snake_case__   :      Union[str, Any]   				= (1 + 24 * n) ** 0.5
				return ((1 + root) / 6) % 1 == 0
def 					UpperCamelCase__		(							A__ = 144       )  ->   int:
				snake_case__   :      Union[str, Any]   				= start
				snake_case__   :      Optional[int]   				= hexagonal_num(A__       )
				while not is_pentagonal(A__       ):
								n += 1
								snake_case__   :      Union[str, Any]   				= hexagonal_num(A__       )
				return num


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



from ...utils import is_transformers_available
from .pipeline_latent_diffusion_superresolution import LDMSuperResolutionPipeline


if is_transformers_available():
				from .pipeline_latent_diffusion import LDMBertModel, LDMTextToImagePipeline


