
'''simple docstring'''







from bisect import bisect
from itertools import accumulate
def 					snake_case_		(				__SCREAMING_SNAKE_CASE					: Dict      ,      __SCREAMING_SNAKE_CASE					: List[Any]      ,      __SCREAMING_SNAKE_CASE					: int      ,      __SCREAMING_SNAKE_CASE					: int							):



						"""simple docstring"""





						lowercase_	:     str													=       sorted(zip(__SCREAMING_SNAKE_CASE      ,      __SCREAMING_SNAKE_CASE							)      ,      key=lambda __SCREAMING_SNAKE_CASE							: x[0] / x[1]      ,      reverse=__SCREAMING_SNAKE_CASE							)
						lowercase_						, lowercase_	:     List[Any]													=       [i[0] for i in r], [i[1] for i in r]
						lowercase_	:     List[str]													=       list(accumulate(__SCREAMING_SNAKE_CASE							)							)
						lowercase_	:     List[Any]													=       bisect(__SCREAMING_SNAKE_CASE      ,      __SCREAMING_SNAKE_CASE							)
						return (
						    0
						    if k == 0
						    else sum(vl[:k]							) + (w - acc[k - 1]) * (vl[k]) / (wt[k])
						    if k != n
						    else sum(vl[:k]							)
						)


if __name__ == "__main__":
							import doctest

							doctest.testmod()






import os

# Precomputes a list of the 100 first triangular numbers
lowercase_       		=  [int(0.5 * n * (n + 1)) for n in range(1, 101)]
def 						_snake_case(    )							->      int:





    '''simple docstring'''






    A__          =   os.path.dirname(os.path.realpath(SCREAMING_SNAKE_CASE__      )      )
    A__          =   os.path.join(SCREAMING_SNAKE_CASE__    ,			'words.txt'      )

    A__          =   ''
    with open(SCREAMING_SNAKE_CASE__      ) as f:
        A__          =   f.readline()

    A__          =   [word.strip('"'      ) for word in words.strip('\r\n'      ).split(','      )]
    A__          =   [
        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())

