
from collections.abc import Sequence
def    lowerCAmelCase_	(				SCREAMING_SNAKE_CASE_ = None						)     ->     int:




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

   _SCREAMING_SNAKE_CASE      =				nums[0]
   for i in range(1    ,      len(SCREAMING_SNAKE_CASE_						)						):
      _SCREAMING_SNAKE_CASE      =				nums[i]
      _SCREAMING_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
     UpperCamelCase__      :		List[str]       							=  int(input("Enter number of elements : ").strip())
     UpperCamelCase__      :		Tuple       							=  list(map(int, input("\nEnter the numbers : ").strip().split()))[:n]
     print(max_subsequence_sum(array))








'''simple docstring'''



def    lowerCAmelCase_	(				SCREAMING_SNAKE_CASE_						)     ->     str:




   """simple docstring"""
   return "".join([hex(SCREAMING_SNAKE_CASE_						)[2:].zfill(2						).upper() for byte in list(SCREAMING_SNAKE_CASE_						)]						)
def    lowerCAmelCase_	(				SCREAMING_SNAKE_CASE_						)     ->     bytes:




   """simple docstring"""
   # Check data validity, following RFC3548
   # https://www.ietf.org/rfc/rfc3548.txt
   if (len(SCREAMING_SNAKE_CASE_						) % 2) != 0:
      raise ValueError(
          """Base16 encoded data is invalid:
Data does not have an even number of hex digits."""						)
   # Check the character set - the standard base16 alphabet
   # is uppercase according to RFC3548 section 6
   if not set(SCREAMING_SNAKE_CASE_						) <= set("""0123456789ABCDEF"""						):
      raise ValueError(
          """Base16 encoded data is invalid:
Data is not uppercase hex or it contains invalid characters."""						)
   # For every two hexadecimal digits (= a byte), turn it into an integer.
   # Then, string the result together into bytes, and return it.
   return bytes(int(data[i] + data[i + 1]    ,      16						) for i in range(0    ,      len(SCREAMING_SNAKE_CASE_						)    ,      2						)						)


if __name__ == "__main__":
     import doctest

     doctest.testmod()






