




'''simple docstring'''




from ...configuration_utils import PretrainedConfig
from ...utils import logging
from ...utils.backbone_utils import BackboneConfigMixin, get_aligned_output_features_output_indices


UpperCAmelCase_				 =					logging.get_logger(__name__)

UpperCAmelCase_				 =					{
    '''facebook/convnextv2-tiny-1k-224''': '''https://huggingface.co/facebook/convnextv2-tiny-1k-224/resolve/main/config.json''',
}

class   lowerCAmelCase_      (       _lowerCAmelCase	,     _lowerCAmelCase      ):







  '''simple docstring'''







  lowerCAmelCase_ :    int    =  """convnextv2"""


  def __init__(  self			:		Tuple  ,						_UpperCAmelCase			:		List[str]=3  ,						_UpperCAmelCase			:		Dict=4  ,						_UpperCAmelCase			:		List[Any]=4  ,						_UpperCAmelCase			:		Tuple=None  ,						_UpperCAmelCase			:		Tuple=None  ,						_UpperCAmelCase			:		Optional[Any]="gelu"  ,						_UpperCAmelCase			:		Optional[Any]=0.02  ,						_UpperCAmelCase			:		Tuple=1E-12  ,						_UpperCAmelCase			:		str=0.0  ,						_UpperCAmelCase			:		Any=2_24  ,						_UpperCAmelCase			:		int=None  ,						_UpperCAmelCase			:		Optional[int]=None  ,						**_UpperCAmelCase			:		Tuple  ,						):






   """simple docstring"""






   super().__init__(**_UpperCAmelCase       )

   UpperCAmelCase__								=			num_channels
   UpperCAmelCase__								=			patch_size
   UpperCAmelCase__								=			num_stages
   UpperCAmelCase__								=			[96, 1_92, 3_84, 7_68] if hidden_sizes is None else hidden_sizes
   UpperCAmelCase__								=			[3, 3, 9, 3] if depths is None else depths
   UpperCAmelCase__								=			hidden_act
   UpperCAmelCase__								=			initializer_range
   UpperCAmelCase__								=			layer_norm_eps
   UpperCAmelCase__								=			drop_path_rate
   UpperCAmelCase__								=			image_size
   UpperCAmelCase__								=			["stem"] + [f'''stage{idx}''' for idx in range(1  ,						len(self.depths       ) + 1       )]
   UpperCAmelCase__								=			get_aligned_output_features_output_indices(
       out_features=_UpperCAmelCase  ,						out_indices=_UpperCAmelCase  ,						stage_names=self.stage_names       )







'''simple docstring'''


def 							UpperCAmelCase_  (						__lowerCamelCase					:					int = 10_00 ):
   lowercase_			,							lowercase_			:str    			= 1, 1
   lowercase_			:Any    			= 2
   while True:
      lowercase_			:str    			= 0
      lowercase_			:Tuple    			= fa + fa
      lowercase_			,							lowercase_			:Tuple    			= fa, f
      index += 1
      for _ in str(__lowerCamelCase ):
         i += 1
      if i == n:
         break
   return index


if __name__ == "__main__":
 print(solution(int(str(input()).strip())))


