






"""simple docstring"""



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


__A		:       Any  				=		logging.get_logger(__name__)

__A		:       Dict  				=		{
    '''weiweishi/roc-bert-base-zh''': '''https://huggingface.co/weiweishi/roc-bert-base-zh/resolve/main/config.json''',
}





class 					_UpperCAmelCase       ( _A							):
					SCREAMING_SNAKE_CASE_		:				Dict							    =   "roc_bert"




					def __init__(				self     :						Optional[int]    ,						A     :						Any=3_05_22    ,						A     :						List[str]=7_68    ,						A     :						List[str]=12    ,						A     :						int=12    ,						A     :						Any=30_72    ,						A     :						Tuple="gelu"    ,						A     :						Union[str, Any]=0.1    ,						A     :						Union[str, Any]=0.1    ,						A     :						Optional[int]=5_12    ,						A     :						str=2    ,						A     :						Dict=0.02    ,						A     :						Union[str, Any]=1e-12    ,						A     :						Dict=True    ,						A     :						str=0    ,						A     :						Tuple="absolute"    ,						A     :						Dict=None    ,						A     :						int=True    ,						A     :						int=True    ,						A     :						List[Any]=7_68    ,						A     :						List[Any]=9_10    ,						A     :						Dict=5_12    ,						A     :						Any=2_48_58    ,						A     :						Union[str, Any]=True    ,						**A     :						List[str]    ,						)  ->  Dict:
							lowercase_ : Union[str, Any]							       =   vocab_size
							lowercase_ : int							       =   max_position_embeddings
							lowercase_ : Tuple							       =   hidden_size
							lowercase_ : List[Any]							       =   num_hidden_layers
							lowercase_ : Optional[Any]							       =   num_attention_heads
							lowercase_ : Union[str, Any]							       =   intermediate_size
							lowercase_ : Dict							       =   hidden_act
							lowercase_ : Dict							       =   hidden_dropout_prob
							lowercase_ : List[str]							       =   attention_probs_dropout_prob
							lowercase_ : str							       =   initializer_range
							lowercase_ : List[Any]							       =   type_vocab_size
							lowercase_ : Union[str, Any]							       =   layer_norm_eps
							lowercase_ : List[Any]							       =   use_cache
							lowercase_ : Dict							       =   enable_pronunciation
							lowercase_ : Optional[Any]							       =   enable_shape
							lowercase_ : List[Any]							       =   pronunciation_embed_dim
							lowercase_ : Dict							       =   pronunciation_vocab_size
							lowercase_ : Tuple							       =   shape_embed_dim
							lowercase_ : int							       =   shape_vocab_size
							lowercase_ : int							       =   concat_input
							lowercase_ : Dict							       =   position_embedding_type
							lowercase_ : str							       =   classifier_dropout
							super().__init__(pad_token_id=A    ,						**A   )











"""simple docstring"""



def 						lowercase    (				__snake_case				: int = 1_0_0_0	):
		lowercase_       ,					lowercase_ : str							       =   1, 1
		lowercase_ : List[str]							       =   2
		while True:
				lowercase_ : Tuple							       =   0
				lowercase_ : List[Any]							       =   fa + fa
				lowercase_       ,					lowercase_ : Optional[int]							       =   fa, f
				index += 1
				for _ in str(__snake_case	):
						i += 1
				if i == n:
						break
		return index


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



