

'''simple docstring'''

from typing import List

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


A_       						=							logging.get_logger(__name__)

A_       						=							{
    "snap-research/efficientformer-l1-300": (
        "https://huggingface.co/snap-research/efficientformer-l1-300/resolve/main/config.json"
    ),
}





class 							_snake_case (       _a						):
   _A       :     Optional[int]       =					'''efficientformer'''
   def __init__( self			:      Any     ,SCREAMING_SNAKE_CASE__			:      List[int] = [3, 2, 6, 4]     ,SCREAMING_SNAKE_CASE__			:      List[int] = [48, 96, 224, 448]     ,SCREAMING_SNAKE_CASE__			:      List[bool] = [True, True, True, True]     ,SCREAMING_SNAKE_CASE__			:      int = 448     ,SCREAMING_SNAKE_CASE__			:      int = 32     ,SCREAMING_SNAKE_CASE__			:      int = 4     ,SCREAMING_SNAKE_CASE__			:      int = 7     ,SCREAMING_SNAKE_CASE__			:      int = 5     ,SCREAMING_SNAKE_CASE__			:      int = 8     ,SCREAMING_SNAKE_CASE__			:      int = 4     ,SCREAMING_SNAKE_CASE__			:      float = 0.0     ,SCREAMING_SNAKE_CASE__			:      int = 16     ,SCREAMING_SNAKE_CASE__			:      int = 3     ,SCREAMING_SNAKE_CASE__			:      int = 3     ,SCREAMING_SNAKE_CASE__			:      int = 3     ,SCREAMING_SNAKE_CASE__			:      int = 2     ,SCREAMING_SNAKE_CASE__			:      int = 1     ,SCREAMING_SNAKE_CASE__			:      float = 0.0     ,SCREAMING_SNAKE_CASE__			:      int = 1     ,SCREAMING_SNAKE_CASE__			:      bool = True     ,SCREAMING_SNAKE_CASE__			:      bool = True     ,SCREAMING_SNAKE_CASE__			:      float = 1e-5     ,SCREAMING_SNAKE_CASE__			:      str = "gelu"     ,SCREAMING_SNAKE_CASE__			:      float = 0.02     ,SCREAMING_SNAKE_CASE__			:      float = 1e-12     ,SCREAMING_SNAKE_CASE__			:      int = 224     ,SCREAMING_SNAKE_CASE__			:      float = 1e-05     ,**SCREAMING_SNAKE_CASE__			:      List[str]     ,):
     super().__init__(**SCREAMING_SNAKE_CASE__							)

     SCREAMING_SNAKE_CASE:str						      =					hidden_act
     SCREAMING_SNAKE_CASE:int						      =					hidden_dropout_prob
     SCREAMING_SNAKE_CASE:Optional[Any]						      =					hidden_sizes
     SCREAMING_SNAKE_CASE:List[str]						      =					num_hidden_layers
     SCREAMING_SNAKE_CASE:Dict						      =					num_attention_heads
     SCREAMING_SNAKE_CASE:Tuple						      =					initializer_range
     SCREAMING_SNAKE_CASE:Dict						      =					layer_norm_eps
     SCREAMING_SNAKE_CASE:Dict						      =					patch_size
     SCREAMING_SNAKE_CASE:int						      =					num_channels
     SCREAMING_SNAKE_CASE:str						      =					depths
     SCREAMING_SNAKE_CASE:Tuple						      =					mlp_expansion_ratio
     SCREAMING_SNAKE_CASE:str						      =					downsamples
     SCREAMING_SNAKE_CASE:Tuple						      =					dim
     SCREAMING_SNAKE_CASE:int						      =					key_dim
     SCREAMING_SNAKE_CASE:Optional[int]						      =					attention_ratio
     SCREAMING_SNAKE_CASE:Optional[int]						      =					resolution
     SCREAMING_SNAKE_CASE:Optional[Any]						      =					pool_size
     SCREAMING_SNAKE_CASE:Any						      =					downsample_patch_size
     SCREAMING_SNAKE_CASE:Union[str, Any]						      =					downsample_stride
     SCREAMING_SNAKE_CASE:List[Any]						      =					downsample_pad
     SCREAMING_SNAKE_CASE:int						      =					drop_path_rate
     SCREAMING_SNAKE_CASE:Union[str, Any]						      =					num_metaad_blocks
     SCREAMING_SNAKE_CASE:List[Any]						      =					distillation
     SCREAMING_SNAKE_CASE:Dict						      =					use_layer_scale
     SCREAMING_SNAKE_CASE:Optional[Any]						      =					layer_scale_init_value
     SCREAMING_SNAKE_CASE:List[Any]						      =					image_size
     SCREAMING_SNAKE_CASE:int						      =					batch_norm_eps



'''simple docstring'''

def    A_  ( snake_case ):
  SCREAMING_SNAKE_CASE:Dict						      =					(1 + 24 * n) ** 0.5
  return ((1 + root) / 6) % 1 == 0





def    A_  ( snake_case = 5000 ):
  SCREAMING_SNAKE_CASE:int						      =					[(i * (3 * i - 1)) // 2 for i in range(1      ,       snake_case )]
  for i, pentagonal_i in enumerate(snake_case ):
    for j in range(snake_case      ,       len(snake_case ) ):
      SCREAMING_SNAKE_CASE:int						      =					pentagonal_nums[j]
      SCREAMING_SNAKE_CASE:Any						      =					pentagonal_i + pentagonal_j
      SCREAMING_SNAKE_CASE:int						      =					pentagonal_j - pentagonal_i
      if is_pentagonal(snake_case ) and is_pentagonal(snake_case ):
        return b

  return -1


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






