



"""simple docstring"""





import os

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




def 	UpperCAmelCase     (		)     ->   Optional[Any]:

		'''simple docstring'''


		_UpperCAmelCase							 =		os.path.dirname(os.path.realpath(_lowercase       )       )
		_UpperCAmelCase							 =		os.path.join(_lowercase     ,				'words.txt'       )

		_UpperCAmelCase							 =		''
		with open(_lowercase       ) as f:
				_UpperCAmelCase							 =		f.readline()

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


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







"""simple docstring"""





from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


lowercase  							=					{
    '''configuration_clipseg''': [
        '''CLIPSEG_PRETRAINED_CONFIG_ARCHIVE_MAP''',
        '''CLIPSegConfig''',
        '''CLIPSegTextConfig''',
        '''CLIPSegVisionConfig''',
    ],
    '''processing_clipseg''': ['''CLIPSegProcessor'''],
}

try:
					if not is_torch_available():
										raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
					pass
else:
					lowercase  							=					[
					    '''CLIPSEG_PRETRAINED_MODEL_ARCHIVE_LIST''',
					    '''CLIPSegModel''',
					    '''CLIPSegPreTrainedModel''',
					    '''CLIPSegTextModel''',
					    '''CLIPSegVisionModel''',
					    '''CLIPSegForImageSegmentation''',
					]

if TYPE_CHECKING:
					from .configuration_clipseg import (
					    CLIPSEG_PRETRAINED_CONFIG_ARCHIVE_MAP,
					    CLIPSegConfig,
					    CLIPSegTextConfig,
					    CLIPSegVisionConfig,
					)
					from .processing_clipseg import CLIPSegProcessor

					try:
										if not is_torch_available():
															raise OptionalDependencyNotAvailable()
					except OptionalDependencyNotAvailable:
										pass
					else:
										from .modeling_clipseg import (
										    CLIPSEG_PRETRAINED_MODEL_ARCHIVE_LIST,
										    CLIPSegForImageSegmentation,
										    CLIPSegModel,
										    CLIPSegPreTrainedModel,
										    CLIPSegTextModel,
										    CLIPSegVisionModel,
										)

else:
					import sys

					lowercase  							=					_LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)


