



'''simple docstring'''


from __future__ import annotations

from typing import Dict

from ...configuration_utils import PretrainedConfig


_lowerCamelCase      :			List[Any]       =      {
    "susnato/ernie-m-base_pytorch": "https://huggingface.co/susnato/ernie-m-base_pytorch/blob/main/config.json",
    "susnato/ernie-m-large_pytorch": "https://huggingface.co/susnato/ernie-m-large_pytorch/blob/main/config.json",
}

class 					SCREAMING_SNAKE_CASE					(    __lowercase						):






    """simple docstring"""





    _SCREAMING_SNAKE_CASE          =    "ernie_m"
    _SCREAMING_SNAKE_CASE          =    {"dropout": "classifier_dropout", "num_classes": "num_labels"}






    def __init__(    self :   Optional[int]    ,		UpperCamelCase__ :   Optional[Any] = 2_5_0_0_0_2    ,		UpperCamelCase__ :   int = 7_6_8    ,		UpperCamelCase__ :   Optional[int] = 1_2    ,		UpperCamelCase__ :   str = 1_2    ,		UpperCamelCase__ :   Union[str, Any] = 3_0_7_2    ,		UpperCamelCase__ :   Optional[Any] = "gelu"    ,		UpperCamelCase__ :   int = 0.1    ,		UpperCamelCase__ :   int = 0.1    ,		UpperCamelCase__ :   List[str] = 5_1_4    ,		UpperCamelCase__ :   Tuple = 0.0_2    ,		UpperCamelCase__ :   Tuple = 1    ,		UpperCamelCase__ :   int = 1E-0_5    ,		UpperCamelCase__ :   List[str]=None    ,		UpperCamelCase__ :   Dict=False    ,		UpperCamelCase__ :   int=0.0    ,		**UpperCamelCase__ :   List[Any]    ,		):


       """simple docstring"""







       super().__init__(pad_token_id=UpperCamelCase__    ,		**UpperCamelCase__					)
       UpperCamelCase      							=    vocab_size
       UpperCamelCase      							=    hidden_size
       UpperCamelCase      							=    num_hidden_layers
       UpperCamelCase      							=    num_attention_heads
       UpperCamelCase      							=    intermediate_size
       UpperCamelCase      							=    hidden_act
       UpperCamelCase      							=    hidden_dropout_prob
       UpperCamelCase      							=    attention_probs_dropout_prob
       UpperCamelCase      							=    max_position_embeddings
       UpperCamelCase      							=    initializer_range
       UpperCamelCase      							=    layer_norm_eps
       UpperCamelCase      							=    classifier_dropout
       UpperCamelCase      							=    is_decoder
       UpperCamelCase      							=    act_dropout



from collections.abc import Sequence


def 				__A(lowerCAmelCase = 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(lowerCAmelCase			)			):
				_UpperCamelCase         =						nums[i]
				_UpperCamelCase         =						max(lowerCAmelCase    ,	ans + num    ,	lowerCAmelCase			)

		return ans


if __name__ == "__main__":
		import doctest

		doctest.testmod()

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



