




import requests

UpperCAmelCase_		:					List[str]          =  "https://newsapi.org/v1/articles?source=bbc-news&sortBy=top&apiKey="




def 		lowerCAmelCase_ (						lowerCamelCase ):
				# fetching a list of articles in json format
				__magic_name__						:						List[Any]										=requests.get(_NEWS_API + bbc_news_api_key ).json()
				# each article in the list is a dict
				for i, article in enumerate(bbc_news_page["""articles"""]						,  1 ):
								print(F"{i}.) {article['title']}" )


if __name__ == "__main__":
							fetch_bbc_news(bbc_news_api_key="<Your BBC News API key goes here>")










from collections.abc import Sequence




def 		lowerCAmelCase_ (						lowerCamelCase = None ):
				if nums is None or not nums:
								raise ValueError("""Input sequence should not be empty""" )

				__magic_name__						:						str										=nums[0]
				for i in range(1						,  len(lowerCamelCase ) ):
								__magic_name__						:						Any										=nums[i]
								__magic_name__						:						Dict										=max(lowerCamelCase						,  ans + num						,  lowerCamelCase )

				return ans


if __name__ == "__main__":
							import doctest

							doctest.testmod()

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




