






'''simple docstring'''
import unittest
from dataclasses import dataclass

import pytest

from accelerate.commands.config.config_args import SageMakerConfig
from accelerate.utils import ComputeEnvironment
from accelerate.utils.launch import _convert_nargs_to_dict






@dataclass
class        __SCREAMING_SNAKE_CASE (     _lowercase			):
 snake_case_												=							ComputeEnvironment.AMAZON_SAGEMAKER
 snake_case_												=							True
 snake_case_												=							"""ml.p3.2xlarge"""
 snake_case_												=							"""accelerate_sagemaker_execution_role"""
 snake_case_												=							"""hf-sm"""
 snake_case_												=							"""us-east-1"""
 snake_case_												=							1
 snake_case_												=							"""accelerate-sagemaker-1"""
 snake_case_												=							"""1.6"""
 snake_case_												=							"""4.4"""
 snake_case_												=							"""train.py"""
 snake_case_												=							[
     """--model_name_or_path""",
     """bert""",
     """--do_train""",
     """False""",
     """--epochs""",
     """3""",
     """--learning_rate""",
     """5e-5""",
     """--max_steps""",
     """50.5""",
 ]
 snake_case_												=							[
     """--model_name_or_path""",
     """bert""",
     """--do_train""",
     """--do_test""",
     """False""",
     """--do_predict""",
     """--epochs""",
     """3""",
     """--learning_rate""",
     """5e-5""",
     """--max_steps""",
     """50.5""",
 ]






class        __SCREAMING_SNAKE_CASE (     unittest.TestCase			):




 def        __magic_name__		( self		:							List[str] )		->  List[Any]:
       # If no defaults are changed, `to_kwargs` returns an empty dict.
       SCREAMING_SNAKE_CASE__       :			Optional[Any]													=_convert_nargs_to_dict(MockLaunchConfig.success_training_script_args )
       assert isinstance(converted_args['''model_name_or_path''']   , __UpperCamelCase )
       assert isinstance(converted_args['''do_train''']   , __UpperCamelCase )
       assert isinstance(converted_args['''epochs''']   , __UpperCamelCase )
       assert isinstance(converted_args['''learning_rate''']   , __UpperCamelCase )
       assert isinstance(converted_args['''max_steps''']   , __UpperCamelCase )

       with pytest.raises(__UpperCamelCase ):
             _convert_nargs_to_dict(MockLaunchConfig.fail_training_script_args )







'''simple docstring'''
from math import factorial





def 	_a(					UpperCamelCase__			:  int = 1_0_0							):




      '''simple docstring'''






      return sum(int(UpperCamelCase__							) for x in str(factorial(UpperCamelCase__							)							)							)


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