




"""simple docstring"""







def     snake_case__							(       _lowerCamelCase					)      ->int:






		"""simple docstring"""


		stooge(SCREAMING_SNAKE_CASE__,	0,	len(SCREAMING_SNAKE_CASE__					) - 1					)
		return arr

def     snake_case__							(       _lowerCamelCase,	_lowerCamelCase,	_lowerCamelCase					)      ->Optional[int]:






		"""simple docstring"""


		if i >= h:
				return

		# If first element is smaller than the last then swap them
		if arr[i] > arr[h]:
				__lowercase					:		str        =					arr[h], arr[i]

		# If there are more than 2 elements in the array
		if h - i + 1 > 2:
				__lowercase					:		Optional[int]        =					(int)((h - i + 1) / 3					)

				# Recursively sort first 2/3 elements
				stooge(SCREAMING_SNAKE_CASE__,	SCREAMING_SNAKE_CASE__,	(h - t)					)

				# Recursively sort last 2/3 elements
				stooge(SCREAMING_SNAKE_CASE__,	i + t,	(SCREAMING_SNAKE_CASE__)					)

				# Recursively sort first 2/3 elements
				stooge(SCREAMING_SNAKE_CASE__,	SCREAMING_SNAKE_CASE__,	(h - t)					)


if __name__ == "__main__":
						__A :	str       =   input('Enter numbers separated by a comma:\n').strip()
						__A :	Dict       =   [int(item) for item in user_input.split(',')]
						print(stooge_sort(unsorted))





"""simple docstring"""




import requests

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

def 		__snake_case		( SCREAMING_SNAKE_CASE__      :		str							)    ->  None:





     '''simple docstring'''

     _UpperCAmelCase     :      List[str]														=       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>")
