



'''simple docstring'''


def 	_a       (				__lowerCAmelCase		:      Optional[int]     ):

		"""simple docstring"""

		if not isinstance(_lowerCamelCase   ,							_lowerCamelCase     ):
				raise TypeError('''Input value must be an \'int\' type'''     )

		snake_case__						:       Tuple       						=  0
		while number:
				position += 1
				number >>= 1

		return position


if __name__ == "__main__":
					import doctest

					doctest.testmod()






'''simple docstring'''


from collections.abc import Sequence




def 	_a       (				__lowerCAmelCase		:      Sequence[int] | None = None     ):

		"""simple docstring"""

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

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

		return ans


if __name__ == "__main__":
					import doctest

					doctest.testmod()

					# Try on a sample input from the user
					lowerCAmelCase__						:       str										=						int(input("""Enter number of elements : """).strip())
					lowerCAmelCase__						:       Dict										=						list(map(int, input("""\nEnter the numbers : """).strip().split()))[:n]
					print(max_subsequence_sum(array))



