

'''simple docstring'''





import warnings

from ...utils import logging
from .image_processing_dpt import DPTImageProcessor


UpperCamelCase_    						=       logging.get_logger(__name__)





class 		__SCREAMING_SNAKE_CASE							(			lowercase__      ):







				def __init__(       self     :		Optional[int]		,					*UpperCAmelCase__     :		Optional[int]		,					**UpperCAmelCase__     :		Tuple   ):
										'''simple docstring'''
										warnings.warn(
										    '''The class DPTFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please'''
										    ''' use DPTImageProcessor instead.'''		,					UpperCAmelCase__		,					)
										super().__init__(*UpperCAmelCase__		,					**UpperCAmelCase__   )







from collections.abc import Sequence
def 							SCREAMING_SNAKE_CASE_	(					UpperCAmelCase_	:     Sequence[int] | None = None				)			->						int:
       if nums is None or not nums:
              raise ValueError('''Input sequence should not be empty'''				)

       SCREAMING_SNAKE_CASE_							:				Tuple		=nums[0]
       for i in range(1			,							len(UpperCAmelCase_				)				):
              SCREAMING_SNAKE_CASE_							:				Any		=nums[i]
              SCREAMING_SNAKE_CASE_							:				Optional[int]		=max(UpperCAmelCase_			,							ans + num			,							UpperCAmelCase_				)

       return ans


if __name__ == "__main__":
 import doctest

 doctest.testmod()

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