



"""simple docstring"""
def 			_SCREAMING_SNAKE_CASE						(__lowerCAmelCase = 10**9							) ->						int:







  '''simple docstring'''


  lowercase_								= 1
  lowercase_								= 2

  lowercase_								= 0
  lowercase_								= 0
  lowercase_								= 0
  while perimeter <= max_perimeter:
    perimeters_sum += perimeter

    prev_value += 2 * value
    value += prev_value

    lowercase_								= 2 * value + 2 if i % 2 == 0 else 2 * value - 2
    i += 1

  return perimeters_sum


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






"""simple docstring"""
from ...configuration_utils import PretrainedConfig
from ...utils import logging


UpperCAmelCase						:		List[Any]			= logging.get_logger(__name__)

UpperCAmelCase						:		Optional[Any]			= {
    "alibaba-damo/mgp-str-base": "https://huggingface.co/alibaba-damo/mgp-str-base/resolve/main/config.json",
}


class    SCREAMING_SNAKE_CASE__ (							__UpperCAmelCase   ):
    lowercase__      =   "mgp-str"

    def __init__(				self			:				Optional[Any] ,  lowerCAmelCase_			:				Optional[Any]=[3_2, 1_2_8] ,  lowerCAmelCase_			:				Union[str, Any]=4 ,  lowerCAmelCase_			:				Dict=3 ,  lowerCAmelCase_			:				List[str]=2_7 ,  lowerCAmelCase_			:				str=3_8 ,  lowerCAmelCase_			:				Optional[int]=5_0_2_5_7 ,  lowerCAmelCase_			:				Any=3_0_5_2_2 ,  lowerCAmelCase_			:				str=7_6_8 ,  lowerCAmelCase_			:				Any=1_2 ,  lowerCAmelCase_			:				Optional[Any]=1_2 ,  lowerCAmelCase_			:				Tuple=4.0 ,  lowerCAmelCase_			:				str=True ,  lowerCAmelCase_			:				List[str]=False ,  lowerCAmelCase_			:				List[Any]=1E-5 ,  lowerCAmelCase_			:				Any=0.0 ,  lowerCAmelCase_			:				int=0.0 ,  lowerCAmelCase_			:				str=0.0 ,  lowerCAmelCase_			:				Dict=False ,  lowerCAmelCase_			:				List[str]=0.02 ,  **lowerCAmelCase_			:				str ,  ):







      """simple docstring"""







      super().__init__(**lowerCAmelCase_)

      lowercase_								= image_size
      lowercase_								= patch_size
      lowercase_								= num_channels
      lowercase_								= max_token_length
      lowercase_								= num_character_labels
      lowercase_								= num_bpe_labels
      lowercase_								= num_wordpiece_labels
      lowercase_								= hidden_size
      lowercase_								= num_hidden_layers
      lowercase_								= num_attention_heads
      lowercase_								= mlp_ratio
      lowercase_								= distilled
      lowercase_								= layer_norm_eps
      lowercase_								= drop_rate
      lowercase_								= qkv_bias
      lowercase_								= attn_drop_rate
      lowercase_								= drop_path_rate
      lowercase_								= output_aa_attentions
      lowercase_								= initializer_range

