




from collections.abc import Sequence







def lowerCamelCase__  (     _lowercase = None ):

     '''simple docstring'''


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

     UpperCAmelCase_     :				Tuple  =     nums[0]
     for i in range(1					,		len(lowerCAmelCase__ ) ):
          UpperCAmelCase_     :				str  =     nums[i]
          UpperCAmelCase_     :				Tuple  =     max(lowerCAmelCase__					,		ans + num					,		lowerCAmelCase__ )

     return ans


if __name__ == "__main__":
     import doctest

     doctest.testmod()

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


'''simple docstring'''

SCREAMING_SNAKE_CASE							:				int     	=			8.3_1_4_4_5_9_8




def 							_UpperCamelCase				(   lowerCAmelCase__:					float		,lowerCAmelCase__:					float   )      -> float:
							if temperature < 0:
														raise Exception('Temperature cannot be less than 0 K'   )
							if molar_mass <= 0:
														raise Exception('Molar mass cannot be less than or equal to 0 kg/mol'   )
							else:
														return (3 * UNIVERSAL_GAS_CONSTANT * temperature / molar_mass) ** 0.5


if __name__ == "__main__":
							import doctest

							# run doctest
							doctest.testmod()

							# example
							SCREAMING_SNAKE_CASE							:				List[str]     	=			300
							SCREAMING_SNAKE_CASE							:				List[Any]     	=			28
							SCREAMING_SNAKE_CASE							:				Optional[Any]     	=			rms_speed_of_molecule(temperature, molar_mass)
							print(f"Vrms of Nitrogen gas at 300 K is {vrms} m/s")





