





from ...configuration_utils import PretrainedConfig
from ...utils import logging


__UpperCamelCase:	Any = logging.get_logger(__name__)

__UpperCamelCase:	Tuple = {
    "weiweishi/roc-bert-base-zh": "https://huggingface.co/weiweishi/roc-bert-base-zh/resolve/main/config.json",
}


class       __lowerCAmelCase					(       _UpperCamelCase      ):


	'''simple docstring'''





	_A													=				"roc_bert"

	def __init__(						self:						Optional[int],					lowerCamelCase_:						Dict=30522,					lowerCamelCase_:						Union[str, Any]=768,					lowerCamelCase_:						int=12,					lowerCamelCase_:						List[str]=12,					lowerCamelCase_:						List[str]=3072,					lowerCamelCase_:						Optional[Any]="gelu",					lowerCamelCase_:						Any=0.1,					lowerCamelCase_:						List[str]=0.1,					lowerCamelCase_:						Optional[int]=512,					lowerCamelCase_:						Union[str, Any]=2,					lowerCamelCase_:						List[Any]=0.0_2,					lowerCamelCase_:						Any=1E-12,					lowerCamelCase_:						Dict=True,					lowerCamelCase_:						Optional[Any]=0,					lowerCamelCase_:						Any="absolute",					lowerCamelCase_:						Optional[Any]=None,					lowerCamelCase_:						str=True,					lowerCamelCase_:						Dict=True,					lowerCamelCase_:						Dict=768,					lowerCamelCase_:						Optional[Any]=910,					lowerCamelCase_:						str=512,					lowerCamelCase_:						List[str]=24858,					lowerCamelCase_:						int=True,					**lowerCamelCase_:						List[str],					):
			lowercase__					:      Dict      =		vocab_size
			lowercase__					:      Union[str, Any]      =		max_position_embeddings
			lowercase__					:      int      =		hidden_size
			lowercase__					:      List[str]      =		num_hidden_layers
			lowercase__					:      Tuple      =		num_attention_heads
			lowercase__					:      List[Any]      =		intermediate_size
			lowercase__					:      Any      =		hidden_act
			lowercase__					:      Optional[Any]      =		hidden_dropout_prob
			lowercase__					:      str      =		attention_probs_dropout_prob
			lowercase__					:      Optional[Any]      =		initializer_range
			lowercase__					:      Any      =		type_vocab_size
			lowercase__					:      List[str]      =		layer_norm_eps
			lowercase__					:      int      =		use_cache
			lowercase__					:      Dict      =		enable_pronunciation
			lowercase__					:      List[str]      =		enable_shape
			lowercase__					:      int      =		pronunciation_embed_dim
			lowercase__					:      int      =		pronunciation_vocab_size
			lowercase__					:      Tuple      =		shape_embed_dim
			lowercase__					:      List[Any]      =		shape_vocab_size
			lowercase__					:      Optional[int]      =		concat_input
			lowercase__					:      Optional[Any]      =		position_embedding_type
			lowercase__					:      Optional[int]      =		classifier_dropout
			super().__init__(pad_token_id=snake_case__,					**snake_case__			)





from collections.abc import Sequence


def 							__lowerCAmelCase     (							_UpperCamelCase		:	Sequence[int] | None = None						)		->				int:
 '''simple docstring'''


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

 SCREAMING_SNAKE_CASE		    =      nums[0]
 for i in range(1		,				len(_UpperCamelCase						)						):
  SCREAMING_SNAKE_CASE		    =      nums[i]
  SCREAMING_SNAKE_CASE		    =      max(_UpperCamelCase		,				ans + num		,				_UpperCamelCase						)

 return ans


if __name__ == "__main__":
      import doctest

      doctest.testmod()

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

