



"""simple docstring"""

from collections.abc import Sequence





def       __magic_name__    (   _lowerCamelCase				: Dict = None					):
							if nums is None or not nums:
														raise ValueError("""Input sequence should not be empty"""					)

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








"""simple docstring"""

def       __magic_name__    (   _lowerCamelCase				: int  ,       _lowerCamelCase				: float  ,       _lowerCamelCase				: float					):
							return round(float(moles / volume					) * nfactor					)





def       __magic_name__    (   _lowerCamelCase				: float  ,       _lowerCamelCase				: float  ,       _lowerCamelCase				: float					):
							return round(float((moles * 0.08_21 * temperature) / (volume)					)					)





def       __magic_name__    (   _lowerCamelCase				: float  ,       _lowerCamelCase				: float  ,       _lowerCamelCase				: float					):
							return round(float((moles * 0.08_21 * temperature) / (pressure)					)					)





def       __magic_name__    (   _lowerCamelCase				: float  ,       _lowerCamelCase				: float  ,       _lowerCamelCase				: float					):
							return round(float((pressure * volume) / (0.08_21 * moles)					)					)


if __name__ == "__main__":
	import doctest

	doctest.testmod()

