



from ..utils import requires_backends


UpperCamelCase_									=   None







class       _snake_case				:






   '''simple docstring'''






   def __init__(    self:     List[str]  ,*lowerCamelCase_:     Any  ,**lowerCamelCase_:     List[str]							)	->      List[Any]:
       requires_backends(self  ,["""detectron2"""]							)






   @classmethod
   def       A__    (    cls:     Any  ,*lowerCamelCase_:     Any  ,**lowerCamelCase_:     int							)	->      str:
       requires_backends(cls  ,["""detectron2"""]							)








"""simple docstring"""





from itertools import combinations, product



def      __lowercase       (     a			:					int							,		a			:					int							,		a			:					int							,		a			:					int			)       ->       bool:
      if xa == ya == 0 or xa == ya == 0:
            return False
      __snake_case   :     Any	      =xa * xa + ya * ya
      __snake_case   :     Tuple	      =xa * xa + ya * ya
      __snake_case   :     List[Any]	      =(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      __lowercase       (     a			:					int = 50			)       ->       int:
      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() = }''')


