

"""simple docstring"""



import copy

from ...configuration_utils import PretrainedConfig
from ...utils import logging
from ..auto.configuration_auto import CONFIG_MAPPING


SCREAMING_SNAKE_CASE_					:	List[Any]		  =						logging.get_logger(__name__)



class 					a						(       _lowerCamelCase				):



    """simple docstring"""



    UpperCAmelCase						 =					"upernet"

    def __init__(     self: Any    ,						UpperCamelCase: Optional[Any]=None    ,						UpperCamelCase: Dict=5_12    ,						UpperCamelCase: Optional[Any]=0.02    ,						UpperCamelCase: List[Any]=[1, 2, 3, 6]    ,						UpperCamelCase: Dict=True    ,						UpperCamelCase: str=0.4    ,						UpperCamelCase: Union[str, Any]=3_84    ,						UpperCamelCase: Optional[Any]=2_56    ,						UpperCamelCase: Optional[int]=1    ,						UpperCamelCase: Any=False    ,						UpperCamelCase: Dict=2_55    ,						**UpperCamelCase: Optional[Any]    ,						):






         """simple docstring"""


         super().__init__(**__A       )

         if backbone_config is None:
              logger.info("""`backbone_config` is `None`. Initializing the config with the default `ResNet` backbone."""       )
              A__										=  CONFIG_MAPPING["resnet"](out_features=["""stage1""", """stage2""", """stage3""", """stage4"""]       )
         elif isinstance(__A    ,						__A       ):
              A__										=  backbone_config.get("""model_type"""       )
              A__										=  CONFIG_MAPPING[backbone_model_type]
              A__										=  config_class.from_dict(__A       )

         A__										=  backbone_config
         A__										=  hidden_size
         A__										=  initializer_range
         A__										=  pool_scales
         A__										=  use_auxiliary_head
         A__										=  auxiliary_loss_weight
         A__										=  auxiliary_in_channels
         A__										=  auxiliary_channels
         A__										=  auxiliary_num_convs
         A__										=  auxiliary_concat_input
         A__										=  loss_ignore_index





    def 				UpperCamelCase	(     self: Optional[int]       ):






         """simple docstring"""


         A__										=  copy.deepcopy(self.__dict__       )
         A__										=  self.backbone_config.to_dict()
         A__										=  self.__class__.model_type
         return output









"""simple docstring"""



def  _snake_case     (    UpperCAmelCase_  :					int			):
     A__										=  1
     for i in range(1					,   num + 1			):
          fact *= i
     return fact





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





def  _snake_case     (    UpperCAmelCase_  :					int = 100			):
     A__										=  factorial(UpperCAmelCase_			)
     A__										=  split_and_add(UpperCAmelCase_			)
     return result


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






