from itertools import combinations, product







def  __lowerCAmelCase							(						__SCREAMING_SNAKE_CASE    : int						,				__SCREAMING_SNAKE_CASE    : int						,				__SCREAMING_SNAKE_CASE    : int						,				__SCREAMING_SNAKE_CASE    : int					):







    '''simple docstring'''





    if xa == ya == 0 or xa == ya == 0:
        return False
    __snake_case    :							List[str]             =  xa * xa + ya * ya
    __snake_case    :							Tuple             =  xa * xa + ya * ya
    __snake_case    :							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  __lowerCAmelCase							(						__SCREAMING_SNAKE_CASE    : int = 5_0					):







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


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






'''simple docstring'''
from transformers import PretrainedConfig
class  _snake_case						(__SCREAMING_SNAKE_CASE):
			__A   :     Optional[Any]          ="custom"






			def __init__(   self       ,_snake_case=1       ,**_snake_case			):
				UpperCAmelCase_			:	Optional[int]      =   attribute
				super().__init__(**_snake_case			)




class  _snake_case						(__SCREAMING_SNAKE_CASE):
			__A   :     Dict          ="custom"






			def __init__(   self       ,_snake_case=1       ,**_snake_case			):
				UpperCAmelCase_			:	Optional[int]      =   attribute




