





'''simple docstring'''

from collections.abc import Sequence







def    a__							(							lowercase   :	Sequence[int] | None = None )						->						int:





     """simple docstring"""

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

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

     return ans


if __name__ == "__main__":
   import doctest

   doctest.testmod()

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









"""simple docstring"""

def 		_snake_case	(   _snake_case				:   int							,    _snake_case				:   int				)       ->   int:






      '''simple docstring'''


      return int((input_a, input_a).count(1				) != 0				)






def 		_snake_case	(   )       ->   None:






      '''simple docstring'''


      assert or_gate(0							,    0				) == 0
      assert or_gate(0							,    1				) == 1
      assert or_gate(1							,    0				) == 1
      assert or_gate(1							,    1				) == 1


if __name__ == "__main__":
       print(or_gate(0, 1))
       print(or_gate(1, 0))
       print(or_gate(0, 0))
       print(or_gate(1, 1))

