



"""simple docstring"""






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


lowerCAmelCase__              =							logging.get_logger(__name__)

lowerCAmelCase__              =							{}






class 			__snake_case			(      _a):
  snake_case__							:  List[str]         =		"""llama"""
  snake_case__							:  List[Any]         =		["""past_key_values"""]




  def __init__(					self	:		Dict		,   __lowerCAmelCase	:		Union[str, Any]=3_2_0_0_0		,   __lowerCAmelCase	:		Tuple=4_0_9_6		,   __lowerCAmelCase	:		int=1_1_0_0_8		,   __lowerCAmelCase	:		int=3_2		,   __lowerCAmelCase	:		Dict=3_2		,   __lowerCAmelCase	:		Tuple=None		,   __lowerCAmelCase	:		Any="silu"		,   __lowerCAmelCase	:		List[str]=2_0_4_8		,   __lowerCAmelCase	:		int=0.02		,   __lowerCAmelCase	:		Any=1E-6		,   __lowerCAmelCase	:		Tuple=True		,   __lowerCAmelCase	:		Optional[int]=0		,   __lowerCAmelCase	:		Optional[Any]=1		,   __lowerCAmelCase	:		Tuple=2		,   __lowerCAmelCase	:		Any=1		,   __lowerCAmelCase	:		Tuple=False		,   __lowerCAmelCase	:		List[str]=None		,   **__lowerCAmelCase	:		str		,   ):






         """simple docstring"""






         _lowerCamelCase		:							Union[str, Any]            =					vocab_size
         _lowerCamelCase		:							str            =					max_position_embeddings
         _lowerCamelCase		:							List[Any]            =					hidden_size
         _lowerCamelCase		:							List[str]            =					intermediate_size
         _lowerCamelCase		:							Optional[int]            =					num_hidden_layers
         _lowerCamelCase		:							str            =					num_attention_heads

         # for backward compatibility
         if num_key_value_heads is None:
                _lowerCamelCase		:							Any            =					num_attention_heads

         _lowerCamelCase		:							Optional[Any]            =					num_key_value_heads
         _lowerCamelCase		:							List[str]            =					hidden_act
         _lowerCamelCase		:							List[str]            =					initializer_range
         _lowerCamelCase		:							List[Any]            =					rms_norm_eps
         _lowerCamelCase		:							List[str]            =					pretraining_tp
         _lowerCamelCase		:							Tuple            =					use_cache
         _lowerCamelCase		:							Any            =					rope_scaling
         self._rope_scaling_validation()

         super().__init__(
             pad_token_id=__lowerCAmelCase		,   bos_token_id=__lowerCAmelCase		,   eos_token_id=__lowerCAmelCase		,   tie_word_embeddings=__lowerCAmelCase		,   **__lowerCAmelCase		,   )




  def 		SCREAMING_SNAKE_CASE							(					self	:		List[str]						):






         """simple docstring"""






         if self.rope_scaling is None:
                return

         if not isinstance(self.rope_scaling		,   __lowerCAmelCase						) or len(self.rope_scaling						) != 2:
                raise ValueError(
                    '''`rope_scaling` must be a dictionary with with two fields, `name` and `factor`, '''
                    f'''got {self.rope_scaling}'''						)
         _lowerCamelCase		:							int            =					self.rope_scaling.get('''type'''		,   __lowerCAmelCase						)
         _lowerCamelCase		:							str            =					self.rope_scaling.get('''factor'''		,   __lowerCAmelCase						)
         if rope_scaling_type is None or rope_scaling_type not in ["linear", "dynamic"]:
                raise ValueError(
                    f'''`rope_scaling`\'s name field must be one of [\'linear\', \'dynamic\'], got {rope_scaling_type}'''						)
         if rope_scaling_factor is None or not isinstance(__lowerCAmelCase		,   __lowerCAmelCase						) or rope_scaling_factor <= 1.0:
                raise ValueError(f'''`rope_scaling`\'s factor field must be an float > 1, got {rope_scaling_factor}'''						)









def      _UpperCamelCase  (a__ :int = 1000							):






							"""simple docstring"""





							UpperCamelCase__					  =      2**power
							UpperCamelCase__					  =      0
							while n:
														UpperCamelCase__  ,  UpperCamelCase__					  =      r + n % 10, n // 10
							return r


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




