
"""simple docstring"""







from dataclasses import dataclass, field
from typing import ClassVar, Dict

from ..features import Features, Sequence, Value
from .base import TaskTemplate







@dataclass(frozen=lowercase__   )
class 							__magic_name__     (		lowercase__   ):
					# `task` is not a ClassVar since we want it to be part of the `asdict` output for JSON serialization
					_SCREAMING_SNAKE_CASE       :					str     							=   field(default='question-answering-extractive'      ,		metadata={'include_in_asdict_even_if_is_default': True}   )
					_SCREAMING_SNAKE_CASE       :					ClassVar[Features]     							=   Features({'question': Value('string'   ), 'context': Value('string'   )}   )
					_SCREAMING_SNAKE_CASE       :					ClassVar[Features]     							=   Features(
					    {
					        'answers': Sequence(
					            {
					                'text': Value('string'   ),
					                'answer_start': Value('int32'   ),
					            }   )
					    }   )
					_SCREAMING_SNAKE_CASE       :					str     							=   "question"
					_SCREAMING_SNAKE_CASE       :					str     							=   "context"
					_SCREAMING_SNAKE_CASE       :					str     							=   "answers"





					@property
					def 							lowerCAmelCase      (				self   :							str    ):
												return {self.question_column: "question", self.context_column: "context", self.answers_column: "answers"}


"""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))
