

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


_UpperCAmelCase						:  Optional[int]									=			logging.get_logger(__name__)

_UpperCAmelCase						:  Tuple									=			{
    """google/fnet-base""": """https://huggingface.co/google/fnet-base/resolve/main/config.json""",
    """google/fnet-large""": """https://huggingface.co/google/fnet-large/resolve/main/config.json"""
    # See all FNet models at https://huggingface.co/models?filter=fnet
}







class 					lowercase							(			lowercase_     ):
				__SCREAMING_SNAKE_CASE   :					List[str]			     =     '''fnet'''




				def __init__(   self ,  snake_case=3_2000 ,  snake_case=768 ,  snake_case=12 ,  snake_case=3072 ,  snake_case="gelu_new" ,  snake_case=0.1 ,  snake_case=512 ,  snake_case=4 ,  snake_case=0.02 ,  snake_case=1e-1_2 ,  snake_case=False ,  snake_case=512 ,  snake_case=3 ,  snake_case=1 ,  snake_case=2 ,  **snake_case ,  ):
											super().__init__(pad_token_id=snake_case ,  bos_token_id=snake_case ,  eos_token_id=snake_case ,  **snake_case			)

											snake_case_     							=       vocab_size
											snake_case_     							=       max_position_embeddings
											snake_case_     							=       hidden_size
											snake_case_     							=       num_hidden_layers
											snake_case_     							=       intermediate_size
											snake_case_     							=       hidden_act
											snake_case_     							=       hidden_dropout_prob
											snake_case_     							=       initializer_range
											snake_case_     							=       type_vocab_size
											snake_case_     							=       layer_norm_eps
											snake_case_     							=       use_tpu_fourier_optimizations
											snake_case_     							=       tpu_short_seq_length







def    __lowerCamelCase      (					UpperCamelCase__ = 1000 ):







							'''simple docstring'''






							snake_case_     							=       2**power
							snake_case_     							=       0
							while n:
														snake_case_							,       snake_case_     							=       r + n % 10, n // 10
							return r


if __name__ == "__main__":
					print(solution(int(str(input()).strip())))




