






from itertools import combinations, product

def   SCREAMING_SNAKE_CASE_				(				__magic_name__   :    int      ,     __magic_name__   :    int      ,     __magic_name__   :    int      ,     __magic_name__   :    int   )						->     bool:






	"""simple docstring"""



	if xa == ya == 0 or xa == ya == 0:
		return False
	UpperCamelCase	:Union[str, Any]		=      xa * xa + ya * ya
	UpperCamelCase	:List[str]		=      xa * xa + ya * ya
	UpperCamelCase	:List[str]		=      (xa - xa) * (xa - xa) + (ya - ya) * (ya - ya)
	return (
	    a_square + b_square == c_square
	    or a_square + c_square == b_square
	    or b_square + c_square == a_square
	)

def   SCREAMING_SNAKE_CASE_				(				__magic_name__   :    int = 50   )						->     int:






	"""simple docstring"""



	return sum(
	    1
	    for pta, pta in combinations(product(range(limit + 1   )      ,     repeat=2   )      ,     2   )
	    if is_right(*__magic_name__      ,     *__magic_name__   )   )


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








class        _SCREAMING_SNAKE_CASE			:





	def __init__(						self							:   Union[str, Any]      ):
		UpperCamelCase	:Union[str, Any]		=      [0, 1]





	def 		_A					(						self							:   str					,    __lowerCamelCase							:   int      ):
		if (difference := index - (len(self.sequence      ) - 2)) >= 1:
			for _ in range(__lowerCamelCase      ):
				self.sequence.append(self.sequence[-1] + self.sequence[-2]      )
		return self.sequence[:index]

def   SCREAMING_SNAKE_CASE_				(				)						->     None:






	"""simple docstring"""



	print(
	    """Fibonacci Series Using Dynamic Programming\n"""      ,     """Enter the index of the Fibonacci number you want to calculate """      ,     """in the prompt below. (To exit enter exit or Ctrl-C)\n"""      ,     sep=""""""      ,     )
	UpperCamelCase	:Any		=      Fibonacci()

	while True:
		UpperCamelCase	:str		=      input(""">> """   )
		if prompt in {"exit", "quit"}:
			break

		try:
			UpperCamelCase	:int		=      int(__magic_name__   )
		except ValueError:
			print("""Enter a number or 'exit'"""   )
			continue

		print(fibonacci.get(__magic_name__   )   )


if __name__ == "__main__":
	main()
