






"""simple docstring"""



from ..utils import DummyObject, requires_backends






class 				__SCREAMING_SNAKE_CASE    (					metaclass=UpperCamelCase		):
							snake_case_  =				['torch', 'transformers', 'k_diffusion']


							def __init__(      self   :    int      ,     *snake_case   :    Any      ,     **snake_case   :    Tuple				):
													'''simple docstring'''





													requires_backends(self      ,     ["""torch""", """transformers""", """k_diffusion"""]				)


							@classmethod
							def     _UpperCamelCase							(      cls   :    Dict      ,     *snake_case   :    str      ,     **snake_case   :    str				):
													'''simple docstring'''





													requires_backends(cls      ,     ["""torch""", """transformers""", """k_diffusion"""]				)


							@classmethod
							def     _UpperCamelCase							(      cls   :    Tuple      ,     *snake_case   :    Any      ,     **snake_case   :    Optional[int]				):
													'''simple docstring'''





													requires_backends(cls      ,     ["""torch""", """transformers""", """k_diffusion"""]				)














"""simple docstring"""



from itertools import combinations, product




def   _lowerCAmelCase		(				UpperCAmelCase__							:       int,    UpperCAmelCase__							:       int,    UpperCAmelCase__							:       int,    UpperCAmelCase__							:       int   )		->bool:
						if xa == ya == 0 or xa == ya == 0:
												return False
						A__    :	List[str]			=	xa * xa + ya * ya
						A__    :	List[Any]			=	xa * xa + ya * ya
						A__    :	Optional[int]			=	(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   _lowerCAmelCase		(				UpperCAmelCase__							:       int = 5_0   )		->int:
						return sum(
						    1
						    for pta, pta in combinations(product(range(limit + 1   ),    repeat=2   ),    2   )
						    if is_right(*UpperCAmelCase__,    *UpperCAmelCase__   )   )


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






