




from __future__ import annotations

def 					UpperCAmelCase_							(      __UpperCAmelCase						:	list[int]							)					-> int:
      if not nums:
            return 0
      SCREAMING_SNAKE_CASE_							=			nums[0]
      SCREAMING_SNAKE_CASE_							=			0
      for num in nums[1:]:
            SCREAMING_SNAKE_CASE_						, SCREAMING_SNAKE_CASE_							=			(
                max_excluding + num,
                max(__UpperCAmelCase			,			__UpperCAmelCase							),
            )
      return max(__UpperCAmelCase			,			__UpperCAmelCase							)


if __name__ == "__main__":
   import doctest

   doctest.testmod()





import re

from filelock import FileLock


try:
   import nltk

   lowerCamelCase__ :   str					=							True
except (ImportError, ModuleNotFoundError):
   lowerCamelCase__ :   Union[str, Any]					=							False

if NLTK_AVAILABLE:
   with FileLock('.lock') as lock:
      nltk.download('punkt', quiet=True)

def 					UpperCAmelCase_							(      __UpperCAmelCase						:	str							)					-> str:
      re.sub('<n>'			,			''			,			__UpperCAmelCase							)  # remove pegasus newline char
      assert NLTK_AVAILABLE, "nltk must be installed to separate newlines between sentences. (pip install nltk)"
      return "\n".join(nltk.sent_tokenize(__UpperCAmelCase							)							)