




'''simple docstring'''


from collections.abc import Sequence
def 						snake_case_       (UpperCamelCase			:    Sequence[int] | None = None ):





							'''simple docstring'''


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

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

							return ans


if __name__ == "__main__":
				import doctest

				doctest.testmod()

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






from typing import TYPE_CHECKING

from ...utils import _LazyModule


a      :  int			     =			{'tokenization_wav2vec2_phoneme': ['Wav2Vec2PhonemeCTCTokenizer']}


if TYPE_CHECKING:
	from .tokenization_wavaveca_phoneme import WavaVecaPhonemeCTCTokenizer
else:
	import sys

	a      :  int			     =			_LazyModule(__name__, globals()['__file__'], _import_structure, module_spec=__spec__)






