
from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


A		: Tuple								=     {
    '''configuration_clap''': [
        '''CLAP_PRETRAINED_MODEL_ARCHIVE_LIST''',
        '''ClapAudioConfig''',
        '''ClapConfig''',
        '''ClapTextConfig''',
    ],
    '''processing_clap''': ['''ClapProcessor'''],
}

try:
		if not is_torch_available():
				raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
		pass
else:
		A		: Union[str, Any]								=     [
		    '''CLAP_PRETRAINED_MODEL_ARCHIVE_LIST''',
		    '''ClapModel''',
		    '''ClapPreTrainedModel''',
		    '''ClapTextModel''',
		    '''ClapTextModelWithProjection''',
		    '''ClapAudioModel''',
		    '''ClapAudioModelWithProjection''',
		]
		A		: Tuple								=     ['''ClapFeatureExtractor''']

if TYPE_CHECKING:
		from .configuration_clap import (
		    CLAP_PRETRAINED_MODEL_ARCHIVE_LIST,
		    ClapAudioConfig,
		    ClapConfig,
		    ClapTextConfig,
		)
		from .processing_clap import ClapProcessor

		try:
				if not is_torch_available():
						raise OptionalDependencyNotAvailable()
		except OptionalDependencyNotAvailable:
				pass
		else:
				from .feature_extraction_clap import ClapFeatureExtractor
				from .modeling_clap import (
				    CLAP_PRETRAINED_MODEL_ARCHIVE_LIST,
				    ClapAudioModel,
				    ClapAudioModelWithProjection,
				    ClapModel,
				    ClapPreTrainedModel,
				    ClapTextModel,
				    ClapTextModelWithProjection,
				)


else:
		import sys

		A		: str								=     _LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)

import os

# Precomputes a list of the 100 first triangular numbers
A		: List[Any]								=     [int(0.5 * n * (n + 1)) for n in range(1, 101)]




def 	UpperCamelCase__  (     )  ->     str:
						_lowercase					       =					os.path.dirname(os.path.realpath(SCREAMING_SNAKE_CASE_       )       )
						_lowercase					       =					os.path.join(SCREAMING_SNAKE_CASE_		,   """words.txt"""       )

						_lowercase					       =					""""""
						with open(SCREAMING_SNAKE_CASE_       ) as f:
												_lowercase					       =					f.readline()

						_lowercase					       =					[word.strip("""\""""       ) for word in words.strip("""\r\n"""       ).split(""","""       )]
						_lowercase					       =					[
						    word
						    for word in [sum(ord(SCREAMING_SNAKE_CASE_       ) - 64 for x in word       ) for word in words]
						    if word in TRIANGULAR_NUMBERS
						]
						return len(SCREAMING_SNAKE_CASE_       )


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