




'''simple docstring'''



import os

# Precomputes a list of the 100 first triangular numbers
UpperCamelCase_    	=				[int(0.5 * n * (n + 1)) for n in range(1, 1_0_1)]




def   lowercase__(			):

      """simple docstring"""






      SCREAMING_SNAKE_CASE   :      List[Any]    					=						os.path.dirname(os.path.realpath(__UpperCamelCase    )    )
      SCREAMING_SNAKE_CASE   :      List[str]    					=						os.path.join(__UpperCamelCase      ,'words.txt'    )

      SCREAMING_SNAKE_CASE   :      Any    					=						''
      with open(__UpperCamelCase    ) as f:
            SCREAMING_SNAKE_CASE   :      Dict    					=						f.readline()

      SCREAMING_SNAKE_CASE   :      Union[str, Any]    					=						[word.strip('"'    ) for word in words.strip('\r\n'    ).split(','    )]
      SCREAMING_SNAKE_CASE   :      str    					=						[
          word
          for word in [sum(ord(__UpperCamelCase    ) - 64 for x in word    ) for word in words]
          if word in TRIANGULAR_NUMBERS
      ]
      return len(__UpperCamelCase    )


if __name__ == "__main__":
      print(solution())






from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_flax_available, is_torch_available


_SCREAMING_SNAKE_CASE     :					Optional[int]      =       {"configuration_speech_encoder_decoder": ["SpeechEncoderDecoderConfig"]}

try:
 if not is_torch_available():
  raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
 pass
else:
 _SCREAMING_SNAKE_CASE     :					Optional[int]      =       ["SpeechEncoderDecoderModel"]

try:
 if not is_flax_available():
  raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
 pass
else:
 _SCREAMING_SNAKE_CASE     :					Dict      =       ["FlaxSpeechEncoderDecoderModel"]

if TYPE_CHECKING:
 from .configuration_speech_encoder_decoder import SpeechEncoderDecoderConfig

 try:
  if not is_torch_available():
   raise OptionalDependencyNotAvailable()
 except OptionalDependencyNotAvailable:
  pass
 else:
  from .modeling_speech_encoder_decoder import SpeechEncoderDecoderModel

 try:
  if not is_flax_available():
   raise OptionalDependencyNotAvailable()
 except OptionalDependencyNotAvailable:
  pass
 else:
  from .modeling_flax_speech_encoder_decoder import FlaxSpeechEncoderDecoderModel

else:
 import sys

 _SCREAMING_SNAKE_CASE     :					List[Any]      =       _LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)




