from collections.abc import Sequence



def 	__SCREAMING_SNAKE_CASE  (					__UpperCamelCase    :       Sequence[int] | None = None	)							->					int:







  """simple docstring"""





  if nums is None or not nums:
    raise ValueError("""Input sequence should not be empty"""	)

  SCREAMING_SNAKE_CASE__										=      nums[0]
  for i in range(1 ,     len(__UpperCamelCase	)	):
    SCREAMING_SNAKE_CASE__										=      nums[i]
    SCREAMING_SNAKE_CASE__										=      max(__UpperCamelCase ,     ans + num ,     __UpperCamelCase	)

  return ans


if __name__ == "__main__":
   import doctest

   doctest.testmod()

   # Try on a sample input from the user
   __lowerCamelCase			: Tuple							   =		int(input('''Enter number of elements : ''').strip())
   __lowerCamelCase			: Union[str, Any]							   =		list(map(int, input('''\nEnter the numbers : ''').strip().split()))[:n]
   print(max_subsequence_sum(array))

import warnings

from ..trainer import Trainer
from ..utils import logging


__lowerCamelCase			: List[Any]							   =		logging.get_logger(__name__)







class __snake_case				(						lowerCamelCase_		):




   def __init__(    self			:				Tuple       ,	_lowercase			:				Optional[int]=None       ,	**_lowercase			:				List[Any]      ):



     """simple docstring"""






     warnings.warn(
         """`SageMakerTrainer` is deprecated and will be removed in v5 of Transformers. You can use `Trainer` """
         """instead."""       ,	_lowercase       ,	)
     super().__init__(args=_lowercase       ,	**_lowercase      )
