



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


snake_case    :						Optional[Any]  =						logging.get_logger(__name__)

snake_case    :						int  =						{
    'Visual-Attention-Network/van-base': (
        'https://huggingface.co/Visual-Attention-Network/van-base/blob/main/config.json'
    ),
}




class 							lowerCAmelCase__  (	lowercase_						):
     __A     :    List[str]           =						'van'







     def __init__(       self      :     Union[str, Any]			,		_A      :     List[Any]=224			,		_A      :     int=3			,		_A      :     Tuple=[7, 3, 3, 3]			,		_A      :     Dict=[4, 2, 2, 2]			,		_A      :     Optional[int]=[64, 128, 320, 512]			,		_A      :     Dict=[3, 3, 12, 3]			,		_A      :     List[Any]=[8, 8, 4, 4]			,		_A      :     List[Any]="gelu"			,		_A      :     Optional[int]=0.02			,		_A      :     Union[str, Any]=1e-6			,		_A      :     Dict=1e-2			,		_A      :     int=0.0			,		_A      :     Optional[Any]=0.0			,		**_A      :     Optional[int]			,		):
           super().__init__(**lowerCamelCase_)
           A__	:							List[str]						    = image_size
           A__	:							List[Any]						    = num_channels
           A__	:							str						    = patch_sizes
           A__	:							Optional[int]						    = strides
           A__	:							Dict						    = hidden_sizes
           A__	:							str						    = depths
           A__	:							Optional[Any]						    = mlp_ratios
           A__	:							Optional[int]						    = hidden_act
           A__	:							str						    = initializer_range
           A__	:							List[Any]						    = layer_norm_eps
           A__	:							Any						    = layer_scale_init_value
           A__	:							int						    = drop_path_rate
           A__	:							Union[str, Any]						    = dropout_rate




def 	snake_case__       (					__lowercase       )		->		int:







						"""simple docstring"""

						if divisor % 5 == 0 or divisor % 2 == 0:
												return 0
						A__	:							Tuple						    = 1
						A__	:							Union[str, Any]						    = 1
						while repunit:
												A__	:							Union[str, Any]						    = (1_0 * repunit + 1) % divisor
												repunit_index += 1
						return repunit_index
def 	snake_case__       (					__lowercase = 1_0_0_0_0_0_0       )		->		int:







						"""simple docstring"""

						A__	:							Dict						    = limit - 1
						if divisor % 2 == 0:
												divisor += 1
						while least_divisible_repunit(__lowercase       ) <= limit:
												divisor += 2
						return divisor


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