



'''simple docstring'''

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


snake_case_			=     logging.get_logger(__name__)

snake_case_			=     {
    """CarlCochet/trajectory-transformer-halfcheetah-medium-v2""": (
        """https://huggingface.co/CarlCochet/trajectory-transformer-halfcheetah-medium-v2/resolve/main/config.json"""
    ),
    # See all TrajectoryTransformer models at https://huggingface.co/models?filter=trajectory_transformer
}


class 	a__     (				_lowercase	):
	__magic_name__		:    Dict	    =     "trajectory_transformer"
	__magic_name__		:    int	    =     ["past_key_values"]
	__magic_name__		:    List[Any]	    =     {
	    "hidden_size": "n_embd",
	    "num_attention_heads": "n_head",
	    "num_hidden_layers": "n_layer",
	}


	def __init__(self : Union[str, Any],					__UpperCAmelCase : Dict=100,					__UpperCAmelCase : List[str]=5,					__UpperCAmelCase : List[Any]=1,					__UpperCAmelCase : Dict=1,					__UpperCAmelCase : int=249,					__UpperCAmelCase : Optional[Any]=6,					__UpperCAmelCase : List[str]=17,					__UpperCAmelCase : str=25,					__UpperCAmelCase : Dict=4,					__UpperCAmelCase : int=4,					__UpperCAmelCase : List[Any]=128,					__UpperCAmelCase : Any=0.1,					__UpperCAmelCase : List[Any]=0.1,					__UpperCAmelCase : str=0.1,					__UpperCAmelCase : List[str]=0.0006,					__UpperCAmelCase : Tuple=512,					__UpperCAmelCase : int=0.02,					__UpperCAmelCase : Tuple=1e-12,					__UpperCAmelCase : Dict=1,					__UpperCAmelCase : Tuple=True,					__UpperCAmelCase : int=1,					__UpperCAmelCase : Any=50256,					__UpperCAmelCase : Dict=50256,					**__UpperCAmelCase : List[str],					)     ->			Optional[int]:

					"""simple docstring"""

					SCREAMING_SNAKE_CASE  :						Optional[int]      					= vocab_size
					SCREAMING_SNAKE_CASE  :						List[str]      					= action_weight
					SCREAMING_SNAKE_CASE  :						Union[str, Any]      					= reward_weight
					SCREAMING_SNAKE_CASE  :						Tuple      					= value_weight
					SCREAMING_SNAKE_CASE  :						Union[str, Any]      					= max_position_embeddings
					SCREAMING_SNAKE_CASE  :						Any      					= block_size
					SCREAMING_SNAKE_CASE  :						List[Any]      					= action_dim
					SCREAMING_SNAKE_CASE  :						int      					= observation_dim
					SCREAMING_SNAKE_CASE  :						Any      					= transition_dim
					SCREAMING_SNAKE_CASE  :						Tuple      					= learning_rate
					SCREAMING_SNAKE_CASE  :						Optional[int]      					= n_layer
					SCREAMING_SNAKE_CASE  :						Union[str, Any]      					= n_head
					SCREAMING_SNAKE_CASE  :						Dict      					= n_embd
					SCREAMING_SNAKE_CASE  :						Optional[int]      					= embd_pdrop
					SCREAMING_SNAKE_CASE  :						List[str]      					= attn_pdrop
					SCREAMING_SNAKE_CASE  :						Union[str, Any]      					= resid_pdrop
					SCREAMING_SNAKE_CASE  :						Tuple      					= initializer_range
					SCREAMING_SNAKE_CASE  :						Tuple      					= layer_norm_eps
					SCREAMING_SNAKE_CASE  :						Tuple      					= kaiming_initializer_range
					SCREAMING_SNAKE_CASE  :						List[str]      					= use_cache
					super().__init__(pad_token_id=__UpperCAmelCase,					bos_token_id=__UpperCAmelCase,					eos_token_id=__UpperCAmelCase,					**__UpperCAmelCase      )









'''simple docstring'''

def       __lowercase  (_SCREAMING_SNAKE_CASE      :int       ):
				SCREAMING_SNAKE_CASE  :						Tuple      					= 1
				for i in range(1    ,	num + 1       ):
								fact *= i
				return fact






def       __lowercase  (_SCREAMING_SNAKE_CASE      :int       ):
				SCREAMING_SNAKE_CASE  :						List[Any]      					= 0
				while number > 0:
								SCREAMING_SNAKE_CASE  :						List[str]      					= number % 10
								sum_of_digits += last_digit
								SCREAMING_SNAKE_CASE  :						List[str]      					= number // 10  # Removing the last_digit from the given number
				return sum_of_digits






def       __lowercase  (_SCREAMING_SNAKE_CASE      :int = 1_00       ):
				SCREAMING_SNAKE_CASE  :						List[Any]      					= factorial(_SCREAMING_SNAKE_CASE       )
				SCREAMING_SNAKE_CASE  :						List[str]      					= split_and_add(_SCREAMING_SNAKE_CASE       )
				return result


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




