
'''simple docstring'''
from ...configuration_utils import PretrainedConfig
from ...utils import logging


lowerCAmelCase					:    Union[str, Any]           = logging.get_logger(__name__)

lowerCAmelCase					:    List[str]           = {
    """alibaba-damo/mgp-str-base""": """https://huggingface.co/alibaba-damo/mgp-str-base/resolve/main/config.json""",
}


class 			SCREAMING_SNAKE_CASE__      (     UpperCAmelCase__):
				lowerCAmelCase_     			=							"""mgp-str"""







				def __init__(       self						,				A_=[32, 128]						,				A_=4						,				A_=3						,				A_=27						,				A_=38						,				A_=50257						,				A_=30522						,				A_=768						,				A_=12						,				A_=12						,				A_=4.0						,				A_=True						,				A_=False						,				A_=1e-5						,				A_=0.0						,				A_=0.0						,				A_=0.0						,				A_=False						,				A_=0.02						,				**A_						,				)->		Optional[int]:







											'''simple docstring'''






											super().__init__(**_UpperCAmelCase     )

											UpperCamelCase   			=     image_size
											UpperCamelCase   			=     patch_size
											UpperCamelCase   			=     num_channels
											UpperCamelCase   			=     max_token_length
											UpperCamelCase   			=     num_character_labels
											UpperCamelCase   			=     num_bpe_labels
											UpperCamelCase   			=     num_wordpiece_labels
											UpperCamelCase   			=     hidden_size
											UpperCamelCase   			=     num_hidden_layers
											UpperCamelCase   			=     num_attention_heads
											UpperCamelCase   			=     mlp_ratio
											UpperCamelCase   			=     distilled
											UpperCamelCase   			=     layer_norm_eps
											UpperCamelCase   			=     drop_rate
											UpperCamelCase   			=     qkv_bias
											UpperCamelCase   			=     attn_drop_rate
											UpperCamelCase   			=     drop_path_rate
											UpperCamelCase   			=     output_aa_attentions
											UpperCamelCase   			=     initializer_range












def      _snake_case     (__lowercase):
   UpperCamelCase_						=  1
   for i in range(1     ,   num + 1):
      fact *= i
   return fact






def      _snake_case     (__lowercase):
   UpperCamelCase_						=  0
   while number > 0:
      UpperCamelCase_						=  number % 10
      sum_of_digits += last_digit
      UpperCamelCase_						=  number // 10  # Removing the last_digit from the given number
   return sum_of_digits






def      _snake_case     (__lowercase = 100):
   UpperCamelCase_						=  factorial(__lowercase)
   UpperCamelCase_						=  split_and_add(__lowercase)
   return result


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





