

"""simple docstring"""




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


lowerCAmelCase							:  Union[str, Any]            =						logging.get_logger(__name__)

lowerCAmelCase							:  Dict            =						{
    """weiweishi/roc-bert-base-zh""": """https://huggingface.co/weiweishi/roc-bert-base-zh/resolve/main/config.json""",
}



class   __lowercase    (			a__     ):




			"""simple docstring"""







			_UpperCAmelCase       :							Optional[int]      							=					"roc_bert"



			def __init__(			self  :					int       ,						lowerCAmelCase__  :					List[str]=3_0522       ,						lowerCAmelCase__  :					Optional[int]=768       ,						lowerCAmelCase__  :					int=12       ,						lowerCAmelCase__  :					str=12       ,						lowerCAmelCase__  :					Any=3072       ,						lowerCAmelCase__  :					Union[str, Any]="gelu"       ,						lowerCAmelCase__  :					Optional[Any]=0.1       ,						lowerCAmelCase__  :					List[str]=0.1       ,						lowerCAmelCase__  :					Optional[int]=512       ,						lowerCAmelCase__  :					Optional[int]=2       ,						lowerCAmelCase__  :					Optional[Any]=0.02       ,						lowerCAmelCase__  :					Any=1E-12       ,						lowerCAmelCase__  :					List[str]=True       ,						lowerCAmelCase__  :					Any=0       ,						lowerCAmelCase__  :					int="absolute"       ,						lowerCAmelCase__  :					Any=None       ,						lowerCAmelCase__  :					Optional[int]=True       ,						lowerCAmelCase__  :					Tuple=True       ,						lowerCAmelCase__  :					Optional[int]=768       ,						lowerCAmelCase__  :					Optional[int]=910       ,						lowerCAmelCase__  :					Union[str, Any]=512       ,						lowerCAmelCase__  :					int=2_4858       ,						lowerCAmelCase__  :					int=True       ,						**lowerCAmelCase__  :					Any       ,						):
									SCREAMING_SNAKE_CASE_:			Any  		=	vocab_size
									SCREAMING_SNAKE_CASE_:			Any  		=	max_position_embeddings
									SCREAMING_SNAKE_CASE_:			Optional[Any]  		=	hidden_size
									SCREAMING_SNAKE_CASE_:			Tuple  		=	num_hidden_layers
									SCREAMING_SNAKE_CASE_:			Tuple  		=	num_attention_heads
									SCREAMING_SNAKE_CASE_:			Dict  		=	intermediate_size
									SCREAMING_SNAKE_CASE_:			Optional[Any]  		=	hidden_act
									SCREAMING_SNAKE_CASE_:			Tuple  		=	hidden_dropout_prob
									SCREAMING_SNAKE_CASE_:			List[Any]  		=	attention_probs_dropout_prob
									SCREAMING_SNAKE_CASE_:			Tuple  		=	initializer_range
									SCREAMING_SNAKE_CASE_:			Any  		=	type_vocab_size
									SCREAMING_SNAKE_CASE_:			Any  		=	layer_norm_eps
									SCREAMING_SNAKE_CASE_:			Union[str, Any]  		=	use_cache
									SCREAMING_SNAKE_CASE_:			Any  		=	enable_pronunciation
									SCREAMING_SNAKE_CASE_:			List[Any]  		=	enable_shape
									SCREAMING_SNAKE_CASE_:			List[str]  		=	pronunciation_embed_dim
									SCREAMING_SNAKE_CASE_:			Optional[int]  		=	pronunciation_vocab_size
									SCREAMING_SNAKE_CASE_:			str  		=	shape_embed_dim
									SCREAMING_SNAKE_CASE_:			Tuple  		=	shape_vocab_size
									SCREAMING_SNAKE_CASE_:			Optional[int]  		=	concat_input
									SCREAMING_SNAKE_CASE_:			Dict  		=	position_embedding_type
									SCREAMING_SNAKE_CASE_:			List[str]  		=	classifier_dropout
									super().__init__(pad_token_id=SCREAMING_SNAKE_CASE_       ,						**SCREAMING_SNAKE_CASE_)









def       A_				(   _UpperCAmelCase = 10**9   ):
						SCREAMING_SNAKE_CASE_:			List[str]  		=	1
						SCREAMING_SNAKE_CASE_:			Optional[int]  		=	2

						SCREAMING_SNAKE_CASE_:			int  		=	0
						SCREAMING_SNAKE_CASE_:			Dict  		=	0
						SCREAMING_SNAKE_CASE_:			List[str]  		=	0
						while perimeter <= max_perimeter:
												perimeters_sum += perimeter

												prev_value += 2 * value
												value += prev_value

												SCREAMING_SNAKE_CASE_:			Any  		=	2 * value + 2 if i % 2 == 0 else 2 * value - 2
												i += 1

						return perimeters_sum


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






