






'''simple docstring'''






import os

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




def        _SCREAMING_SNAKE_CASE  (				)    -> Dict:







   """simple docstring"""
   __snake_case				:      List[str]     							= os.path.dirname(os.path.realpath(A  )  )
   __snake_case				:      List[Any]     							= os.path.join(A  ,		'words.txt'  )

   __snake_case				:      Dict     							= ''
   with open(A  ) as f:
      __snake_case				:      List[str]     							= f.readline()

   __snake_case				:      Optional[Any]     							= [word.strip('"'  ) for word in words.strip('\r\n'  ).split(','  )]
   __snake_case				:      Dict     							= [
       word
       for word in [sum(ord(A  ) - 64 for x in word  ) for word in words]
       if word in TRIANGULAR_NUMBERS
   ]
   return len(A  )


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







'''simple docstring'''






def        _SCREAMING_SNAKE_CASE  (				A  :       int  )    -> int:







   """simple docstring"""
   __snake_case				:      str     							= 1
   for i in range(1  ,		num + 1  ):
      fact *= i
   return fact




def        _SCREAMING_SNAKE_CASE  (				A  :       int  )    -> int:







   """simple docstring"""
   __snake_case				:      Union[str, Any]     							= 0
   while number > 0:
      __snake_case				:      Dict     							= number % 10
      sum_of_digits += last_digit
      __snake_case				:      Union[str, Any]     							= number // 10  # Removing the last_digit from the given number
   return sum_of_digits




def        _SCREAMING_SNAKE_CASE  (				A  :       int = 1_00  )    -> int:







   """simple docstring"""
   __snake_case				:      List[Any]     							= factorial(A  )
   __snake_case				:      Dict     							= split_and_add(A  )
   return result


if __name__ == "__main__":
      print(solution(int(input('''Enter the Number: ''').strip())))