'''simple docstring'''

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


lowercase_     		= logging.get_logger(__name__)

lowercase_     		= {
    '''google/bit-50''': '''https://huggingface.co/google/bit-50/resolve/main/config.json''',
}
class   SCREAMING_SNAKE_CASE			(						__lowercase    ,			__lowercase):







		"""simple docstring"""
		lowercase   :      str       =							'bit'
		lowercase   :      Any       =							['preactivation', 'bottleneck']
		lowercase   :      List[str]       =							['SAME', 'VALID']






		def __init__(   self		,						__A=3		,						__A=64		,						__A=[256, 512, 1024, 2048]		,						__A=[3, 4, 6, 3]		,						__A="preactivation"		,						__A="relu"		,						__A=None		,						__A=32		,						__A=0.0		,						__A=False		,						__A=32		,						__A=1		,						__A=None		,						__A=None		,						**__A		,						) ->     Tuple:
								super().__init__(**__A				)
								if layer_type not in self.layer_types:
														raise ValueError(F'''layer_type={layer_type} is not one of {','.join(self.layer_types				)}'''				)
								if global_padding is not None:
														if global_padding.upper() in self.supported_padding:
																				_lowerCAmelCase										=global_padding.upper()
														else:
																				raise ValueError(F'''Padding strategy {global_padding} not supported'''				)
								_lowerCAmelCase										=num_channels
								_lowerCAmelCase										=embedding_size
								_lowerCAmelCase										=hidden_sizes
								_lowerCAmelCase										=depths
								_lowerCAmelCase										=layer_type
								_lowerCAmelCase										=hidden_act
								_lowerCAmelCase										=global_padding
								_lowerCAmelCase										=num_groups
								_lowerCAmelCase										=drop_path_rate
								_lowerCAmelCase										=embedding_dynamic_padding
								_lowerCAmelCase										=output_stride
								_lowerCAmelCase										=width_factor

								_lowerCAmelCase										=['stem'] + [F'''stage{idx}''' for idx in range(1		,						len(__A				) + 1				)]
								_lowerCAmelCase						,				_lowerCAmelCase										=get_aligned_output_features_output_indices(
								    out_features=__A		,						out_indices=__A		,						stage_names=self.stage_names				)






'''simple docstring'''

def 							UpperCamelCase__			(			a__ = 1_0_0_0      ):


						'''simple docstring'''






						_lowerCAmelCase										=2**power
						_lowerCAmelCase										=0
						while n:
												_lowerCAmelCase						,				_lowerCAmelCase										=r + n % 1_0, n // 1_0
						return r


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





