





from collections.abc import Sequence





def     _UpperCamelCase     (a__   :Optional[int] = None       ):






       """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(__snake_case       )       ):
              UpperCamelCase__				     =			nums[i]
              UpperCamelCase__				     =			max(__snake_case   ,			ans + num   ,			__snake_case       )

       return ans


if __name__ == "__main__":
     import doctest

     doctest.testmod()

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











from argparse import ArgumentParser

from .env import EnvironmentCommand





def     _UpperCamelCase     ():






							"""simple docstring"""





							UpperCamelCase__				     =			ArgumentParser("""Diffusers CLI tool"""   ,			usage="""diffusers-cli <command> [<args>]"""       )
							UpperCamelCase__				     =			parser.add_subparsers(help="""diffusers-cli command helpers"""       )

							# Register commands
							EnvironmentCommand.register_subcommand(a__       )

							# Let's go
							UpperCamelCase__				     =			parser.parse_args()

							if not hasattr(a__   ,			"""func"""       ):
														parser.print_help()
														exit(1       )

							# Run
							UpperCamelCase__				     =			args.func(a__       )
							service.run()


if __name__ == "__main__":
					main()




