def    A			(					_lowercase = 100		):

						'''simple docstring'''





						SCREAMING_SNAKE_CASE							:					int           =							(n * (n + 1) // 2) ** 2
						SCREAMING_SNAKE_CASE							:					List[str]           =							n * (n + 1) * (2 * n + 1) // 6
						return sum_cubes - sum_squares


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






from dataclasses import asdict, dataclass
from typing import Optional

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


__UpperCamelCase	: Tuple    		=  logging.get_logger(__name__)

# TODO Update this
__UpperCamelCase	: List[str]    		=  {
    'facebook/esm-1b': 'https://huggingface.co/facebook/esm-1b/resolve/main/config.json',
    # See all ESM models at https://huggingface.co/models?filter=esm
}





class       lowercase__		(     UpperCamelCase_):
						UpperCamelCase_  =	"""esm"""


						def __init__( self			:       Tuple					,	UpperCamelCase__			:       Optional[Any]=None					,	UpperCamelCase__			:       int=None					,	UpperCamelCase__			:       List[str]=None					,	UpperCamelCase__			:       Any=768					,	UpperCamelCase__			:       Optional[Any]=12					,	UpperCamelCase__			:       str=12					,	UpperCamelCase__			:       Optional[int]=3072					,	UpperCamelCase__			:       Optional[Any]=0.1					,	UpperCamelCase__			:       Any=0.1					,	UpperCamelCase__			:       Union[str, Any]=1026					,	UpperCamelCase__			:       Dict=0.02					,	UpperCamelCase__			:       Any=1E-12					,	UpperCamelCase__			:       Dict="absolute"					,	UpperCamelCase__			:       Optional[Any]=True					,	UpperCamelCase__			:       int=None					,	UpperCamelCase__			:       Optional[int]=False					,	UpperCamelCase__			:       Tuple=False					,	UpperCamelCase__			:       List[str]=None					,	UpperCamelCase__			:       Optional[Any]=None					,	**UpperCamelCase__			:       Any					,	):





												'''simple docstring'''





												super().__init__(pad_token_id=UpperCamelCase__					,	mask_token_id=UpperCamelCase__					,	**UpperCamelCase__		)

												SCREAMING_SNAKE_CASE							:					List[Any]           =							vocab_size
												SCREAMING_SNAKE_CASE							:					Any           =							hidden_size
												SCREAMING_SNAKE_CASE							:					Union[str, Any]           =							num_hidden_layers
												SCREAMING_SNAKE_CASE							:					Dict           =							num_attention_heads
												SCREAMING_SNAKE_CASE							:					Any           =							intermediate_size
												SCREAMING_SNAKE_CASE							:					str           =							hidden_dropout_prob
												SCREAMING_SNAKE_CASE							:					List[Any]           =							attention_probs_dropout_prob
												SCREAMING_SNAKE_CASE							:					str           =							max_position_embeddings
												SCREAMING_SNAKE_CASE							:					Tuple           =							initializer_range
												SCREAMING_SNAKE_CASE							:					Optional[int]           =							layer_norm_eps
												SCREAMING_SNAKE_CASE							:					Dict           =							position_embedding_type
												SCREAMING_SNAKE_CASE							:					Any           =							use_cache
												SCREAMING_SNAKE_CASE							:					Dict           =							emb_layer_norm_before
												SCREAMING_SNAKE_CASE							:					List[str]           =							token_dropout
												SCREAMING_SNAKE_CASE							:					List[Any]           =							is_folding_model
												if is_folding_model:
																		if esmfold_config is None:
																								logger.info('''No esmfold_config supplied for folding model, using default values.'''		)
																								SCREAMING_SNAKE_CASE							:					List[Any]           =							EsmFoldConfig()
																		elif isinstance(UpperCamelCase__					,	UpperCamelCase__		):
																								SCREAMING_SNAKE_CASE							:					Union[str, Any]           =							EsmFoldConfig(**UpperCamelCase__		)
																		SCREAMING_SNAKE_CASE							:					List[Any]           =							esmfold_config
																		if vocab_list is None:
																								logger.warning('''No vocab_list supplied for folding model, assuming the ESM-2 vocabulary!'''		)
																								SCREAMING_SNAKE_CASE							:					Optional[int]           =							get_default_vocab_list()
																		else:
																								SCREAMING_SNAKE_CASE							:					Optional[Any]           =							vocab_list
												else:
																		SCREAMING_SNAKE_CASE							:					str           =							None
																		SCREAMING_SNAKE_CASE							:					int           =							None
												if self.esmfold_config is not None and getattr(self.esmfold_config					,	'''use_esm_attn_map'''					,	UpperCamelCase__		):
																		raise ValueError('''The HuggingFace port of ESMFold does not support use_esm_attn_map at this time!'''		)



						def  __A ( self			:       Dict		):





												'''simple docstring'''





												SCREAMING_SNAKE_CASE							:					Optional[Any]           =							super().to_dict()
												if isinstance(self.esmfold_config					,	UpperCamelCase__		):
																		SCREAMING_SNAKE_CASE							:					Optional[Any]           =							self.esmfold_config.to_dict()
												return output






@dataclass
class       lowercase__		:
						UpperCamelCase_  =	None
						UpperCamelCase_  =	True
						UpperCamelCase_  =	False
						UpperCamelCase_  =	False
						UpperCamelCase_  =	False
						UpperCamelCase_  =	0

						UpperCamelCase_  =	True
						UpperCamelCase_  =	False

						UpperCamelCase_  =	128
						UpperCamelCase_  =	None


						def  __A ( self			:       Optional[int]		):





												'''simple docstring'''





												if self.trunk is None:
																		SCREAMING_SNAKE_CASE							:					Optional[Any]           =							TrunkConfig()
												elif isinstance(self.trunk					,	UpperCamelCase__		):
																		SCREAMING_SNAKE_CASE							:					Tuple           =							TrunkConfig(**self.trunk		)



						def  __A ( self			:       str		):





												'''simple docstring'''





												SCREAMING_SNAKE_CASE							:					str           =							asdict(self		)
												SCREAMING_SNAKE_CASE							:					Tuple           =							self.trunk.to_dict()
												return output






@dataclass
class       lowercase__		:
						UpperCamelCase_  =	48
						UpperCamelCase_  =	1_024
						UpperCamelCase_  =	128
						UpperCamelCase_  =	32
						UpperCamelCase_  =	32
						UpperCamelCase_  =	32
						UpperCamelCase_  =	0
						UpperCamelCase_  =	0
						UpperCamelCase_  =	False
						UpperCamelCase_  =	4
						UpperCamelCase_  =	128
						UpperCamelCase_  =	None


						def  __A ( self			:       Any		):





												'''simple docstring'''





												if self.structure_module is None:
																		SCREAMING_SNAKE_CASE							:					Optional[int]           =							StructureModuleConfig()
												elif isinstance(self.structure_module					,	UpperCamelCase__		):
																		SCREAMING_SNAKE_CASE							:					Optional[Any]           =							StructureModuleConfig(**self.structure_module		)

												if self.max_recycles <= 0:
																		raise ValueError(f"""`max_recycles` should be positive, got {self.max_recycles}."""		)
												if self.sequence_state_dim % self.sequence_state_dim != 0:
																		raise ValueError(
																		    '''`sequence_state_dim` should be a round multiple of `sequence_state_dim`, got'''
																		    f""" {self.sequence_state_dim} and {self.sequence_state_dim}."""		)
												if self.pairwise_state_dim % self.pairwise_state_dim != 0:
																		raise ValueError(
																		    '''`pairwise_state_dim` should be a round multiple of `pairwise_state_dim`, got'''
																		    f""" {self.pairwise_state_dim} and {self.pairwise_state_dim}."""		)

												SCREAMING_SNAKE_CASE							:					Dict           =							self.sequence_state_dim // self.sequence_head_width
												SCREAMING_SNAKE_CASE							:					Tuple           =							self.pairwise_state_dim // self.pairwise_head_width

												if self.sequence_state_dim != sequence_num_heads * self.sequence_head_width:
																		raise ValueError(
																		    '''`sequence_state_dim` should be equal to `sequence_num_heads * sequence_head_width, got'''
																		    f""" {self.sequence_state_dim} != {sequence_num_heads} * {self.sequence_head_width}."""		)
												if self.pairwise_state_dim != pairwise_num_heads * self.pairwise_head_width:
																		raise ValueError(
																		    '''`pairwise_state_dim` should be equal to `pairwise_num_heads * pairwise_head_width, got'''
																		    f""" {self.pairwise_state_dim} != {pairwise_num_heads} * {self.pairwise_head_width}."""		)
												if self.pairwise_state_dim % 2 != 0:
																		raise ValueError(f"""`pairwise_state_dim` should be even, got {self.pairwise_state_dim}."""		)

												if self.dropout >= 0.4:
																		raise ValueError(f"""`dropout` should not be greater than 0.4, got {self.dropout}."""		)



						def  __A ( self			:       Union[str, Any]		):





												'''simple docstring'''





												SCREAMING_SNAKE_CASE							:					Any           =							asdict(self		)
												SCREAMING_SNAKE_CASE							:					Union[str, Any]           =							self.structure_module.to_dict()
												return output






@dataclass
class       lowercase__		:
						UpperCamelCase_  =	384
						UpperCamelCase_  =	128
						UpperCamelCase_  =	16
						UpperCamelCase_  =	128
						UpperCamelCase_  =	12
						UpperCamelCase_  =	4
						UpperCamelCase_  =	8
						UpperCamelCase_  =	0.1
						UpperCamelCase_  =	8
						UpperCamelCase_  =	1
						UpperCamelCase_  =	2
						UpperCamelCase_  =	7
						UpperCamelCase_  =	10
						UpperCamelCase_  =	1E-8
						UpperCamelCase_  =	1E5


						def  __A ( self			:       Dict		):





												'''simple docstring'''





												return asdict(self		)






def    A			(					):
						return (
						    "<cls>",
						    "<pad>",
						    "<eos>",
						    "<unk>",
						    "L",
						    "A",
						    "G",
						    "V",
						    "S",
						    "E",
						    "R",
						    "T",
						    "I",
						    "D",
						    "P",
						    "K",
						    "Q",
						    "N",
						    "F",
						    "Y",
						    "M",
						    "H",
						    "W",
						    "C",
						    "X",
						    "B",
						    "U",
						    "Z",
						    "O",
						    ".",
						    "-",
						    "<null_1>",
						    "<mask>",
						)





