
"""simple docstring"""

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


_A						=			logging.get_logger(__name__)

_A						=			{
    's-JoL/Open-Llama-V1': 'https://huggingface.co/s-JoL/Open-Llama-V1/blob/main/config.json',
}






class 	_lowercase       (    __UpperCAmelCase		):
	lowercase_				=     'open-llama'




	def __init__(			self		,			UpperCAmelCase_=100000		,			UpperCAmelCase_=4096		,			UpperCAmelCase_=11008		,			UpperCAmelCase_=32		,			UpperCAmelCase_=32		,			UpperCAmelCase_="silu"		,			UpperCAmelCase_=2048		,			UpperCAmelCase_=0.02		,			UpperCAmelCase_=1E-6		,			UpperCAmelCase_=True		,			UpperCAmelCase_=0		,			UpperCAmelCase_=1		,			UpperCAmelCase_=2		,			UpperCAmelCase_=False		,			UpperCAmelCase_=True		,			UpperCAmelCase_=0.1		,			UpperCAmelCase_=0.1		,			UpperCAmelCase_=True		,			UpperCAmelCase_=True		,			UpperCAmelCase_=None		,			**UpperCAmelCase_		,			)		->							str:
			lowerCamelCase					:      Dict          =   vocab_size
			lowerCamelCase					:      str          =   max_position_embeddings
			lowerCamelCase					:      Tuple          =   hidden_size
			lowerCamelCase					:      Optional[int]          =   intermediate_size
			lowerCamelCase					:      List[str]          =   num_hidden_layers
			lowerCamelCase					:      List[Any]          =   num_attention_heads
			lowerCamelCase					:      Any          =   hidden_act
			lowerCamelCase					:      str          =   initializer_range
			lowerCamelCase					:      List[str]          =   rms_norm_eps
			lowerCamelCase					:      int          =   use_cache
			lowerCamelCase					:      Any          =   kwargs.pop(
			    'use_memorry_efficient_attention'		,			UpperCAmelCase_ )
			lowerCamelCase					:      int          =   hidden_dropout_prob
			lowerCamelCase					:      Tuple          =   attention_dropout_prob
			lowerCamelCase					:      int          =   use_stable_embedding
			lowerCamelCase					:      Tuple          =   shared_input_output_embedding
			lowerCamelCase					:      Tuple          =   rope_scaling
			self._rope_scaling_validation()

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




	def       _UpperCamelCase   (			self )		->							Union[str, Any]:
			if self.rope_scaling is None:
					return

			if not isinstance(self.rope_scaling		,			UpperCAmelCase_ ) 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					:      Union[str, Any]          =   self.rope_scaling.get('type'		,			UpperCAmelCase_ )
			lowerCamelCase					:      Tuple          =   self.rope_scaling.get('factor'		,			UpperCAmelCase_ )
			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(UpperCAmelCase_		,			UpperCAmelCase_ ) or rope_scaling_factor <= 1.0:
					raise ValueError(F"""`rope_scaling`'s factor field must be an float > 1, got {rope_scaling_factor}""" )








"""simple docstring"""

def 		UpperCAmelCase (		a_      ):





		'''simple docstring'''


		lowerCamelCase					:      List[Any]          =   1
		for i in range(1,						num + 1      ):
				fact *= i
		return fact
def 		UpperCAmelCase (		a_      ):





		'''simple docstring'''


		lowerCamelCase					:      Optional[Any]          =   0
		while number > 0:
				lowerCamelCase					:      str          =   number % 10
				sum_of_digits += last_digit
				lowerCamelCase					:      Tuple          =   number // 10  # Removing the last_digit from the given number
		return sum_of_digits
def 		UpperCAmelCase (		a_ = 100      ):





		'''simple docstring'''


		lowerCamelCase					:      Optional[Any]          =   factorial(a_      )
		lowerCamelCase					:      int          =   split_and_add(a_      )
		return result


if __name__ == "__main__":
					print(solution(int(input('Enter the Number: ').strip())))






