


def       a_ (       SCREAMING_SNAKE_CASE__   : int						,     SCREAMING_SNAKE_CASE__   : int	):
       '''simple docstring'''





       if a < 0 or b < 0:
              raise ValueError('the value of both inputs must be positive'	)

       _lowerCamelCase			:						str            =str(bin(UpperCAmelCase_	)	)[2:]  # remove the leading "0b"
       _lowerCamelCase			:						Union[str, Any]            =str(bin(UpperCAmelCase_	)	)[2:]  # remove the leading "0b"

       _lowerCamelCase			:						Tuple            =max(len(UpperCAmelCase_	)						,     len(UpperCAmelCase_	)	)

       return "0b" + "".join(
           str(int(char_a == '1' and char_b == '1'	)	)
           for char_a, char_b in zip(a_binary.zfill(UpperCAmelCase_	)						,     b_binary.zfill(UpperCAmelCase_	)	)	)


if __name__ == "__main__":
 import doctest

 doctest.testmod()




from collections.abc import Sequence
def 							SCREAMING_SNAKE_CASE_	(					UpperCAmelCase_	:     Sequence[int] | None = None				)			->						int:
       if nums is None or not nums:
              raise ValueError('''Input sequence should not be empty'''				)

       SCREAMING_SNAKE_CASE_							:				Tuple		=nums[0]
       for i in range(1			,							len(UpperCAmelCase_				)				):
              SCREAMING_SNAKE_CASE_							:				Any		=nums[i]
              SCREAMING_SNAKE_CASE_							:				Optional[int]		=max(UpperCAmelCase_			,							ans + num			,							UpperCAmelCase_				)

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