'''simple docstring'''

from itertools import combinations, product



def 				UpperCamelCase__      (      a__      ,   a__      ,   a__      ,   a__   ):


						'''simple docstring'''






						if xa == ya == 0 or xa == ya == 0:
												return False
						_lowerCAmelCase					    =xa * xa + ya * ya
						_lowerCAmelCase					    =xa * xa + ya * ya
						_lowerCAmelCase					    =(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 				UpperCamelCase__      (      a__ = 5_0   ):


						'''simple docstring'''






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


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






'''simple docstring'''

from ..utils import DummyObject, requires_backends
class 	SCREAMING_SNAKE_CASE      (    metaclass=__lowercase):







		"""simple docstring"""
		lowercase :   List[Any]							=				['tensorflow_text']






		def __init__( self		,    *__A		,    **__A					)			->  List[Any]:
								requires_backends(self		,    ['tensorflow_text']					)





