



def 		lowerCAmelCase__    (					UpperCamelCase_				:       int	)->  bool:
    A__		 =					(1 + 2_4 * n) ** 0.5
    return ((1 + root) / 6) % 1 == 0



def 		lowerCAmelCase__    (					UpperCamelCase_				:       int = 5_0_0_0	)->  int:
    A__		 =					[(i * (3 * i - 1)) // 2 for i in range(1 ,       UpperCamelCase_	)]
    for i, pentagonal_i in enumerate(UpperCamelCase_	):
        for j in range(UpperCamelCase_ ,       len(UpperCamelCase_	)	):
            A__		 =					pentagonal_nums[j]
            A__		 =					pentagonal_i + pentagonal_j
            A__		 =					pentagonal_j - pentagonal_i
            if is_pentagonal(UpperCamelCase_	) and is_pentagonal(UpperCamelCase_	):
                return b

    return -1


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







from ...configuration_utils import PretrainedConfig
from ...utils import logging


_lowercase						  =		logging.get_logger(__name__)



class     _UpperCAmelCase			(       A__     ):
     UpperCamelCase__		    =				'''timm_backbone'''




     def __init__(				self ,						a__=None ,						a__=3 ,						a__=True ,						a__=True ,						a__=None ,						**a__ ,						):
         super().__init__(**a__)
         A__		 =					backbone
         A__		 =					num_channels
         A__		 =					features_only
         A__		 =					use_pretrained_backbone
         A__		 =					True
         A__		 =					out_indices if out_indices is not None else (-1,)
