

from collections import defaultdict
from math import ceil, sqrt





def  __lowerCamelCase     (			UpperCamelCase__ = 1000000       ,							UpperCamelCase__ = 10				):







							'''simple docstring'''






							snake_case_          =   defaultdict(UpperCamelCase__				)

							for outer_width in range(3       ,							(t_limit // 4) + 2				):
														if outer_width * outer_width > t_limit:
																					snake_case_          =   max(
																					    ceil(sqrt(outer_width * outer_width - t_limit				)				)       ,							1				)
														else:
																					snake_case_          =   1

														hole_width_lower_bound += (outer_width - hole_width_lower_bound) % 2

														for hole_width in range(UpperCamelCase__       ,							outer_width - 1       ,							2				):
																					count[outer_width * outer_width - hole_width * hole_width] += 1

							return sum(1 for n in count.values() if 1 <= n <= 10				)


if __name__ == "__main__":
					print(F'''{solution() = }''')







import requests

_UpperCAmelCase		:       Union[str, Any]						    =	"""https://newsapi.org/v1/articles?source=bbc-news&sortBy=top&apiKey="""





def  __lowerCamelCase     (			UpperCamelCase__				):







							'''simple docstring'''






							snake_case_          =   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>""")




