

'''simple docstring'''







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


__lowerCamelCase		       =    logging.get_logger(__name__)

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


class 					A__      (      _snake_case			):
				lowercase						=		"mgp-str"



				def __init__(					self		,				UpperCamelCase__=[32, 128]		,				UpperCamelCase__=4		,				UpperCamelCase__=3		,				UpperCamelCase__=27		,				UpperCamelCase__=38		,				UpperCamelCase__=50257		,				UpperCamelCase__=30522		,				UpperCamelCase__=768		,				UpperCamelCase__=12		,				UpperCamelCase__=12		,				UpperCamelCase__=4.0		,				UpperCamelCase__=True		,				UpperCamelCase__=False		,				UpperCamelCase__=1e-5		,				UpperCamelCase__=0.0		,				UpperCamelCase__=0.0		,				UpperCamelCase__=0.0		,				UpperCamelCase__=False		,				UpperCamelCase__=0.02		,				**UpperCamelCase__		,				)						->      Dict:





											'''simple docstring'''
											super().__init__(**UpperCamelCase__       )

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



'''simple docstring'''







def       UpperCAmelCase__    (      UpperCAmelCase__				)			->			bool:
       return str(UpperCAmelCase__				) == str(UpperCAmelCase__				)[::-1]
def       UpperCAmelCase__    (      UpperCAmelCase__				)			->			int:
       return int(UpperCAmelCase__				) + int(str(UpperCAmelCase__				)[::-1]				)
def       UpperCAmelCase__    (      UpperCAmelCase__ = 1_00_00				)			->			int:
       A_						=      []
       for num in range(1,       UpperCAmelCase__				):
              A_						=      0
              A_						=      num
              while iterations < 50:
                     A_						=      sum_reverse(UpperCAmelCase__				)
                     iterations += 1
                     if is_palindrome(UpperCAmelCase__				):
                            break
              else:
                     lychrel_nums.append(UpperCAmelCase__				)
       return len(UpperCAmelCase__				)


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