


"""simple docstring"""


from collections.abc import Sequence



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


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

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

      return ans


if __name__ == "__main__":
   import doctest

   doctest.testmod()

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







"""simple docstring"""


from ...utils import (
    OptionalDependencyNotAvailable,
    is_torch_available,
    is_transformers_available,
    is_transformers_version,
)


try:
   if not (is_transformers_available() and is_torch_available()):
      raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
   from ...utils.dummy_torch_and_transformers_objects import ShapEPipeline
else:
   from .camera import create_pan_cameras
   from .pipeline_shap_e import ShapEPipeline
   from .pipeline_shap_e_img2img import ShapEImgaImgPipeline
   from .renderer import (
       BoundingBoxVolume,
       ImportanceRaySampler,
       MLPNeRFModelOutput,
       MLPNeRSTFModel,
       ShapEParamsProjModel,
       ShapERenderer,
       StratifiedRaySampler,
       VoidNeRFModel,
   )



