






"""simple docstring"""







from ...configuration_utils import PretrainedConfig
from ...utils import logging


_SCREAMING_SNAKE_CASE	       =      logging.get_logger(__name__)







class 							__magic_name__     (		lowercase__   ):
					_SCREAMING_SNAKE_CASE       :					Any     							=   """timm_backbone"""





					def __init__(				self   :							Any							,						snake_case_   :							str=None							,						snake_case_   :							str=3							,						snake_case_   :							str=True							,						snake_case_   :							Union[str, Any]=True							,						snake_case_   :							Optional[int]=None							,						**snake_case_   :							int							,						):
												super().__init__(**__lowercase    )
												__snake_case     			=       backbone
												__snake_case     			=       num_channels
												__snake_case     			=       features_only
												__snake_case     			=       use_pretrained_backbone
												__snake_case     			=       True
												__snake_case     			=       out_indices if out_indices is not None else (-1,)


"""simple docstring"""







from collections.abc import Sequence
def   __UpperCamelCase   (					SCREAMING_SNAKE_CASE = None )  ->     int:







							"""simple docstring"""


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

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

							return ans


if __name__ == "__main__":
		import doctest

		doctest.testmod()

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