






"""simple docstring"""



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


A_    =							logging.get_logger(__name__)






class 							__SCREAMING_SNAKE_CASE						(				__lowerCAmelCase		):
		snake_case_     =							'''timm_backbone'''


		def __init__(			self      :						Any			,    snake_case      :						Tuple=None			,    snake_case      :						Union[str, Any]=3			,    snake_case      :						Optional[Any]=True			,    snake_case      :						Tuple=True			,    snake_case      :						int=None			,    **snake_case      :						Union[str, Any]			,    ):
								'''simple docstring'''





								super().__init__(**lowerCAmelCase_							)
								A__						:  Optional[int]		  =  backbone
								A__						:  Union[str, Any]		  =  num_channels
								A__						:  List[Any]		  =  features_only
								A__						:  Optional[int]		  =  use_pretrained_backbone
								A__						:  Union[str, Any]		  =  True
								A__						:  str		  =  out_indices if out_indices is not None else (-1,)














"""simple docstring"""



def      _lowerCAmelCase		(							UpperCAmelCase__       :					int = 1_0_0_0      )		->int:
						A__						:  Optional[int]		  =  2**power
						A__						:  Dict		  =  0
						while n:
												A__  ,  A__						:  Tuple		  =  r + n % 1_0, n // 1_0
						return r


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






