



'''simple docstring'''


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

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







@dataclass(frozen=UpperCamelCase_)
class 	UpperCAmelCase	(		UpperCamelCase_):


	'''simple docstring'''




	__magic_name__					: str  =      field(default="question-answering-extractive"					,	metadata={"include_in_asdict_even_if_is_default": True})
	__magic_name__					: ClassVar[Features]  =      Features({"question": Value("string"), "context": Value("string")})
	__magic_name__					: ClassVar[Features]  =      Features(
	    {
	        "answers": Sequence(
	            {
	                "text": Value("string"),
	                "answer_start": Value("int32"),
	            })
	    })
	__magic_name__					: str  =      "question"
	__magic_name__					: str  =      "context"
	__magic_name__					: str  =      "answers"




	@property
	def       lowercase_  (   self) ->      Dict[str, str]:



						"""simple docstring"""







						return {self.question_column: "question", self.context_column: "context", self.answers_column: "answers"}







'''simple docstring'''


from collections.abc import Sequence






def  UpperCAmelCase_       (		lowercase__ = 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(lowercase__       )       ):
          a_       		=nums[i]
          a_       		=max(lowercase__       ,	ans + num       ,	lowercase__       )

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


