






def    SCREAMING_SNAKE_CASE_							(							__magic_name__					:  int					)		->			bool:






	"""simple docstring"""



	UpperCamelCase     :Optional[Any]          =	(1 + 24 * n) ** 0.5
	return ((1 + root) / 6) % 1 == 0

def    SCREAMING_SNAKE_CASE_							(							__magic_name__					:  int = 5000					)		->			int:






	"""simple docstring"""



	UpperCamelCase     :Optional[int]          =	[(i * (3 * i - 1)) // 2 for i in range(1	,			__magic_name__					)]
	for i, pentagonal_i in enumerate(__magic_name__					):
		for j in range(__magic_name__	,			len(__magic_name__					)					):
			UpperCamelCase     :List[str]          =	pentagonal_nums[j]
			UpperCamelCase     :Dict          =	pentagonal_i + pentagonal_j
			UpperCamelCase     :Optional[Any]          =	pentagonal_j - pentagonal_i
			if is_pentagonal(__magic_name__					) and is_pentagonal(__magic_name__					):
				return b

	return -1


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








from typing import TYPE_CHECKING

from ...utils import (
    OptionalDependencyNotAvailable,
    _LazyModule,
    is_flax_available,
    is_tf_available,
    is_tokenizers_available,
    is_torch_available,
)


UpperCAmelCase_ :						str      =      {'''configuration_opt''': ['''OPT_PRETRAINED_CONFIG_ARCHIVE_MAP''', '''OPTConfig''']}

try:
	if not is_torch_available():
		raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
	pass
else:
	UpperCAmelCase_ :						Tuple      =      [
	    '''OPT_PRETRAINED_MODEL_ARCHIVE_LIST''',
	    '''OPTForCausalLM''',
	    '''OPTModel''',
	    '''OPTPreTrainedModel''',
	    '''OPTForSequenceClassification''',
	    '''OPTForQuestionAnswering''',
	]

try:
	if not is_tf_available():
		raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
	pass
else:
	UpperCAmelCase_ :						Any      =      ['''TFOPTForCausalLM''', '''TFOPTModel''', '''TFOPTPreTrainedModel''']

try:
	if not is_flax_available():
		raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
	pass
else:
	UpperCAmelCase_ :						Optional[Any]      =      [
	    '''FlaxOPTForCausalLM''',
	    '''FlaxOPTModel''',
	    '''FlaxOPTPreTrainedModel''',
	]


if TYPE_CHECKING:
	from .configuration_opt import OPT_PRETRAINED_CONFIG_ARCHIVE_MAP, OPTConfig

	try:
		if not is_torch_available():
			raise OptionalDependencyNotAvailable()
	except OptionalDependencyNotAvailable:
		pass
	else:
		from .modeling_opt import (
		    OPT_PRETRAINED_MODEL_ARCHIVE_LIST,
		    OPTForCausalLM,
		    OPTForQuestionAnswering,
		    OPTForSequenceClassification,
		    OPTModel,
		    OPTPreTrainedModel,
		)

	try:
		if not is_tf_available():
			raise OptionalDependencyNotAvailable()
	except OptionalDependencyNotAvailable:
		pass
	else:
		from .modeling_tf_opt import TFOPTForCausalLM, TFOPTModel, TFOPTPreTrainedModel

	try:
		if not is_flax_available():
			raise OptionalDependencyNotAvailable()
	except OptionalDependencyNotAvailable:
		pass
	else:
		from .modeling_flax_opt import FlaxOPTForCausalLM, FlaxOPTModel, FlaxOPTPreTrainedModel

else:
	import sys

	UpperCAmelCase_ :						List[Any]      =      _LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)
