





'''simple docstring'''






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


A :			Any							   =      logging.get_logger(__name__)

A :			Any							   =      {
    'facebook/regnet-y-040': 'https://huggingface.co/facebook/regnet-y-040/blob/main/config.json',
}







class       lowerCamelCase       (    __UpperCAmelCase	):
					_SCREAMING_SNAKE_CASE				 =     "regnet"
					_SCREAMING_SNAKE_CASE				 =     ["x", "y"]


					def __init__(       self						:	Dict							,  __snake_case						:	List[Any]=3							,  __snake_case						:	Dict=32							,  __snake_case						:	Optional[Any]=[1_28, 1_92, 5_12, 10_88]							,  __snake_case						:	Optional[int]=[2, 6, 12, 2]							,  __snake_case						:	List[Any]=64							,  __snake_case						:	Optional[Any]="y"							,  __snake_case						:	List[Any]="relu"							,  **__snake_case						:	Optional[int]							,  ):





											'''simple docstring'''





											super().__init__(**__snake_case							)
											if layer_type not in self.layer_types:
																	raise ValueError(f'''layer_type={layer_type} is not one of {",".join(self.layer_types							)}'''							)
											_snake_case: Dict	       =		num_channels
											_snake_case: Any	       =		embedding_size
											_snake_case: str	       =		hidden_sizes
											_snake_case: Optional[Any]	       =		depths
											_snake_case: List[Any]	       =		groups_width
											_snake_case: Union[str, Any]	       =		layer_type
											_snake_case: str	       =		hidden_act
											# always downsample in the first stage
											_snake_case: int	       =		True












'''simple docstring'''






def    lowercase_   (		lowercase__ = 400_0000    ) ->int:

						if n <= 1:
												return 0
						_snake_case: Union[str, Any]	       =		0
						_snake_case: List[Any]	       =		2
						_snake_case: Any	       =		0
						while 4 * b + a <= n:
												_snake_case       ,    _snake_case: int	       =		b, 4 * b + a
												count += a
						return count + b


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





