





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


UpperCAmelCase						:   Dict			  =     logging.get_logger(__name__)

UpperCAmelCase						:   List[Any]			  =     {
    '''google/fnet-base''': '''https://huggingface.co/google/fnet-base/resolve/main/config.json''',
    '''google/fnet-large''': '''https://huggingface.co/google/fnet-large/resolve/main/config.json'''
    # See all FNet models at https://huggingface.co/models?filter=fnet
}





class 						_A(					snake_case__   ):


				"""simple docstring"""


				UpperCamelCase    :  Dict					    =	'''fnet'''



				def __init__(			self     ,					_A=32000     ,					_A=768     ,					_A=12     ,					_A=3072     ,					_A="gelu_new"     ,					_A=0.1     ,					_A=512     ,					_A=4     ,					_A=0.0_2     ,					_A=1e-1_2     ,					_A=False     ,					_A=512     ,					_A=3     ,					_A=1     ,					_A=2     ,					**_A     ,					):
									super().__init__(pad_token_id=_A     ,					bos_token_id=_A     ,					eos_token_id=_A     ,					**_A     )

									__A	:						Dict       =				vocab_size
									__A	:						Optional[Any]       =				max_position_embeddings
									__A	:						Dict       =				hidden_size
									__A	:						Any       =				num_hidden_layers
									__A	:						Optional[int]       =				intermediate_size
									__A	:						Optional[int]       =				hidden_act
									__A	:						List[Any]       =				hidden_dropout_prob
									__A	:						Optional[Any]       =				initializer_range
									__A	:						Optional[int]       =				type_vocab_size
									__A	:						Tuple       =				layer_norm_eps
									__A	:						Tuple       =				use_tpu_fourier_optimizations
									__A	:						str       =				tpu_short_seq_length











def  _SCREAMING_SNAKE_CASE				(   a  )      ->      bool:
					return str(a  ) == str(a  )[::-1]







def  _SCREAMING_SNAKE_CASE				(   a  )      ->      int:
					return int(a  ) + int(str(a  )[::-1]  )







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


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




