



"""simple docstring"""






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


snake_case   					=				logging.get_logger(__name__)

snake_case   					=				{
    '''alibaba-damo/mgp-str-base''': '''https://huggingface.co/alibaba-damo/mgp-str-base/resolve/main/config.json''',
}



class     UpperCAmelCase    (	__SCREAMING_SNAKE_CASE  ):
   A__		:	int           =  '''mgp-str'''



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



     """simple docstring"""
     super().__init__(**__lowerCamelCase				)

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










"""simple docstring"""






from math import sqrt




def 			snake_case		(		lowerCAmelCase_ = 1000000	)						->				int:
  _snake_case   	=      0
  _snake_case   	=      0
  _snake_case   	=      42

  while num_cuboids <= limit:
    max_cuboid_size += 1
    for sum_shortest_sides in range(2  ,						2 * max_cuboid_size + 1	):
      if sqrt(sum_shortest_sides**2 + max_cuboid_size**2	).is_integer():
        num_cuboids += (
            min(lowerCAmelCase_  ,						sum_shortest_sides // 2	)
            - max(1  ,						sum_shortest_sides - max_cuboid_size	)
            + 1
        )

  return max_cuboid_size


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





