

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


_a									=  logging.get_logger(__name__)

_a									=  {
    '''uw-madison/yoso-4096''': '''https://huggingface.co/uw-madison/yoso-4096/resolve/main/config.json''',
    # See all YOSO models at https://huggingface.co/models?filter=yoso
}






class 				A_					(						snake_case__   ):
     _lowercase     :	List[str]        =      'yoso'


     def __init__(				self     :						Union[str, Any]     ,    UpperCAmelCase     :						Any=5_0_2_6_5     ,    UpperCAmelCase     :						Dict=7_6_8     ,    UpperCAmelCase     :						List[str]=1_2     ,    UpperCAmelCase     :						List[str]=1_2     ,    UpperCAmelCase     :						Union[str, Any]=3_0_7_2     ,    UpperCAmelCase     :						Optional[int]="gelu"     ,    UpperCAmelCase     :						Optional[int]=0.1     ,    UpperCAmelCase     :						List[Any]=0.1     ,    UpperCAmelCase     :						Tuple=4_0_9_6     ,    UpperCAmelCase     :						Tuple=1     ,    UpperCAmelCase     :						Dict=0.02     ,    UpperCAmelCase     :						Tuple=1E-12     ,    UpperCAmelCase     :						str="absolute"     ,    UpperCAmelCase     :						str=True     ,    UpperCAmelCase     :						str=9     ,    UpperCAmelCase     :						Optional[Any]=6_4     ,    UpperCAmelCase     :						List[Any]=None     ,    UpperCAmelCase     :						str=True     ,    UpperCAmelCase     :						int=True     ,    UpperCAmelCase     :						Union[str, Any]=1     ,    UpperCAmelCase     :						Optional[int]=0     ,    UpperCAmelCase     :						Tuple=2     ,    **UpperCAmelCase     :						Optional[int]     ,    )				->      Tuple:
      super().__init__(pad_token_id=UpperCAmelCase     ,    bos_token_id=UpperCAmelCase     ,    eos_token_id=UpperCAmelCase     ,    **UpperCAmelCase   )

      __lowerCAmelCase:  str        = vocab_size
      __lowerCAmelCase:  Union[str, Any]        = max_position_embeddings
      __lowerCAmelCase:  str        = hidden_size
      __lowerCAmelCase:  List[str]        = num_hidden_layers
      __lowerCAmelCase:  int        = num_attention_heads
      __lowerCAmelCase:  List[Any]        = intermediate_size
      __lowerCAmelCase:  Optional[Any]        = hidden_act
      __lowerCAmelCase:  str        = hidden_dropout_prob
      __lowerCAmelCase:  str        = attention_probs_dropout_prob
      __lowerCAmelCase:  Tuple        = initializer_range
      __lowerCAmelCase:  str        = type_vocab_size
      __lowerCAmelCase:  Optional[int]        = layer_norm_eps
      __lowerCAmelCase:  Union[str, Any]        = position_embedding_type
      __lowerCAmelCase:  List[Any]        = use_expectation
      __lowerCAmelCase:  List[Any]        = hash_code_len
      __lowerCAmelCase:  int        = num_hash
      __lowerCAmelCase:  int        = conv_window
      __lowerCAmelCase:  Optional[Any]        = use_fast_hash
      __lowerCAmelCase:  Optional[int]        = lsh_backward








def _a					(			SCREAMING_SNAKE_CASE						:     int = 10_00						)       ->       int:

 """simple docstring"""






 __lowerCAmelCase:  Tuple        = [0, 3, 3, 5, 4, 4, 3, 5, 5, 4, 3, 6, 6, 8, 8, 7, 7, 9, 8, 8]
 # number of letters in twenty, thirty, ..., ninety (0 for numbers less than
 # 20 due to inconsistency in teens)
 __lowerCAmelCase:  List[Any]        = [0, 0, 6, 6, 5, 5, 5, 7, 6, 6]

 __lowerCAmelCase:  Dict        = 0

 for i in range(1       ,   n + 1						):
  if i < 10_00:
   if i >= 1_00:
    # add number of letters for "n hundred"
    count += ones_counts[i // 1_00] + 7

    if i % 1_00 != 0:
     # add number of letters for "and" if number is not multiple
     # of 100
     count += 3

   if 0 < i % 1_00 < 20:
    # add number of letters for one, two, three, ..., nineteen
    # (could be combined with below if not for inconsistency in
    # teens)
    count += ones_counts[i % 1_00]
   else:
    # add number of letters for twenty, twenty one, ..., ninety
    # nine
    count += ones_counts[i % 10]
    count += tens_counts[(i % 1_00 - i % 10) // 10]
  else:
   count += ones_counts[i // 10_00] + 8
 return count


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





